<legend id='S3YNR'><style id='S3YNR'><dir id='S3YNR'><q id='S3YNR'></q></dir></style></legend><tfoot id='S3YNR'></tfoot>
    • <bdo id='S3YNR'></bdo><ul id='S3YNR'></ul>
    1. <small id='S3YNR'></small><noframes id='S3YNR'>

    2. <i id='S3YNR'><tr id='S3YNR'><dt id='S3YNR'><q id='S3YNR'><span id='S3YNR'><b id='S3YNR'><form id='S3YNR'><ins id='S3YNR'></ins><ul id='S3YNR'></ul><sub id='S3YNR'></sub></form><legend id='S3YNR'></legend><bdo id='S3YNR'><pre id='S3YNR'><center id='S3YNR'></center></pre></bdo></b><th id='S3YNR'></th></span></q></dt></tr></i><div id='S3YNR'><tfoot id='S3YNR'></tfoot><dl id='S3YNR'><fieldset id='S3YNR'></fieldset></dl></div>

        asp.net listview 在单击时突出显示行

        时间:2023-06-05

        <small id='rTrou'></small><noframes id='rTrou'>

      1. <tfoot id='rTrou'></tfoot>

            • <i id='rTrou'><tr id='rTrou'><dt id='rTrou'><q id='rTrou'><span id='rTrou'><b id='rTrou'><form id='rTrou'><ins id='rTrou'></ins><ul id='rTrou'></ul><sub id='rTrou'></sub></form><legend id='rTrou'></legend><bdo id='rTrou'><pre id='rTrou'><center id='rTrou'></center></pre></bdo></b><th id='rTrou'></th></span></q></dt></tr></i><div id='rTrou'><tfoot id='rTrou'></tfoot><dl id='rTrou'><fieldset id='rTrou'></fieldset></dl></div>
              <legend id='rTrou'><style id='rTrou'><dir id='rTrou'><q id='rTrou'></q></dir></style></legend>
                <bdo id='rTrou'></bdo><ul id='rTrou'></ul>
                  <tbody id='rTrou'></tbody>
                  本文介绍了asp.net listview 在单击时突出显示行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我知道如何设置列表视图以在单击链接、图像等时突出显示一行,但我只是想知道是否可以将其设置为在单击任何单元格时突出显示一行,而不是只是在一个预定义的控件上.

                  I know how to set up listview to highlight a row when you click a link, image, etc but I am just wondering if it is possible to set it up to highlight a row when you click on any of its cells, not just on a predefined control.

                  这可能吗?

                  我的解决方法是设置每个 <td> 的 onclick,但不知道如何在单击另一个单元格时重置背景颜色.

                  I way around it would be to setup onclick of each <td> but no idea how to reset the background colour when you click on another cell.

                  推荐答案

                  你可以在客户端使用 Jquery:

                  You could use Jquery on the client side:

                  $("#myTable tr").click( function () 
                  {
                     $("#myTable tr").each(function () { $(this).removeClass("selected")}); 
                     $(this).addClass("selected"); 
                  });​
                  

                  小提琴示例:

                  http://jsfiddle.net/9pmcA/26/

                  这篇关于asp.net listview 在单击时突出显示行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:从函数调用按钮 OnClick 下一篇:单击带有 JAvascript.ASP.NET C# 的超链接时删除目录

                  相关文章

                  最新文章

                  <i id='MpgUz'><tr id='MpgUz'><dt id='MpgUz'><q id='MpgUz'><span id='MpgUz'><b id='MpgUz'><form id='MpgUz'><ins id='MpgUz'></ins><ul id='MpgUz'></ul><sub id='MpgUz'></sub></form><legend id='MpgUz'></legend><bdo id='MpgUz'><pre id='MpgUz'><center id='MpgUz'></center></pre></bdo></b><th id='MpgUz'></th></span></q></dt></tr></i><div id='MpgUz'><tfoot id='MpgUz'></tfoot><dl id='MpgUz'><fieldset id='MpgUz'></fieldset></dl></div>

                    1. <small id='MpgUz'></small><noframes id='MpgUz'>

                    2. <tfoot id='MpgUz'></tfoot>
                      <legend id='MpgUz'><style id='MpgUz'><dir id='MpgUz'><q id='MpgUz'></q></dir></style></legend>
                        <bdo id='MpgUz'></bdo><ul id='MpgUz'></ul>