这可能是一件非常简单的事情,但我对CSS完全不熟悉.我只是希望能够在gridview中对我的行进行鼠标悬停悬停效果,如果它正在悬停,则更改行的颜色.以下代码:
<%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/MasterPage.master" CodeFile="RepComisionesDos.aspx.vb" Inherits="Contraloria_Nomina_RepComisionesDos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="E" runat="Server">
<style>
#Gv tr.rowHover:hover
{
background-color: Yellow;
font-family: Arial;
}
</style>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr class="BarraIdentidad">
<td>
</td>
<td class="BarraIdentidad">
<asp:Literal ID="Literal1" runat="server">Users</asp:Literal>
</td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="C" runat="Server">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr class="Encabezado" id="TrFiltros" runat="server">
<td style="width: 15px;">
</td>
<td>
<asp:UpdatePanel ID="UPFiltro" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="TbFiltros" runat="server" clientidmode="Static">
<tr …Run Code Online (Sandbox Code Playgroud)