0

IE 10 中的锚标记显示为空文本节点,我在这里找到的解决方案是添加显示块和缩放 1,但这些都不起作用:

<ul style="list-style-position:outside;list-style-type:none;">
    <li><a href="http://google.com/" style="display:block;zoom:1;">Google</a></li> <!-- nothing is being displayed -->
    <li><a href="http://google.com/" style="display:block;zoom:1;"><b>Google</b></a></li> <!-- the link is being displayed as bold as aspected -->
</ul>
4

2 回答 2

0

肮脏的解决方法:

<meta http-equiv="X-UA-Compatible" content="IE=9">
于 2013-03-12T15:17:13.103 回答
0

在锚标记的文本之后、结束 </a> 标记之前添加一个空格。

<ul style="list-style-position:outside;list-style-type:none;">
  <li><a href="http://google.com/" style="display:block;zoom:1;">Google </a></li> <!-- nothing is being displayed -->
  <li><a href="http://google.com/" style="display:block;zoom:1;"><b>Google</b> </a></li> <!-- the link is being displayed as bold as aspected -->
</ul>
于 2013-07-17T04:06:53.473 回答