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>
答案 0 :(得分:0)
肮脏的解决方法:
<meta http-equiv="X-UA-Compatible" content="IE=9">
答案 1 :(得分:0)
在关键字&lt; / a&gt;之前的锚标记文本之后添加一个空格标签
<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>