Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 更改我的asp:菜单中链接的CSS_Asp.net_Html_Css - Fatal编程技术网

Asp.net 更改我的asp:菜单中链接的CSS

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

我已更改asp.net菜单样式。但我无法更改样式。在上图中,链接的大小并没有得到元素的所有大小

有办法吗

这是我的CSS

.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">
&nbsp;&nbsp;IDs
         </a>
      </td>
    </tr>
   </tbody>
</table>

尝试将display:block添加到锚的css中

.menuItem a
{
    display:block;
    width:220px;
    height:50px;
}

从您的页面发布一些html/css,让我们更好地理解Posted,它是标签内的一个简单链接