Asp.net 更改我的asp:菜单中链接的CSS
我已更改asp.net菜单样式。但我无法更改样式。在上图中,链接的大小并没有得到Asp.net 更改我的asp:菜单中链接的CSS,asp.net,html,css,Asp.net,Html,Css,我已更改asp.net菜单样式。但我无法更改样式。在上图中,链接的大小并没有得到元素的所有大小 有办法吗 这是我的CSS .menuItem { height: 50px; font-weight: normal; font-style: normal; font-variant: normal; text-transform: none; background-color: #F5F5F5; width: 220px; } .menuI
.menuItem
{
height: 50px;
font-weight: normal;
font-style: normal;
font-variant: normal;
text-transform: none;
background-color: #F5F5F5;
width: 220px;
}
.menuItem a
{
width:220px;
height:50px;
}
还有我的HTML
<table class="menuItem MnuMain_4" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="white-space:nowrap;width:100%;">
<a class="MnuMain_1 menuItem MnuMain_3" style="border-style:none;font- size:1em;" target="main" href="Pages/Cadastro/CadPrograma.aspx">
<img style="border-style:none;vertical-align:middle;" alt="" src="Imagens/Menu/btn-programa.png">
IDs
</a>
</td>
</tr>
</tbody>
</table>
尝试将display:block添加到锚的css中
.menuItem a
{
display:block;
width:220px;
height:50px;
}
从您的页面发布一些html/css,让我们更好地理解Posted,它是标签内的一个简单链接