简体   繁体   English

IE 10中的锚标记显示为空文本节点

[英]Anchor tags in IE 10 shows as empty text node

Anchor tags in IE 10 are being displayed as empty text nodes, the solution I already found here was adding display block and zoom 1, but those aren't working: 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>

变通方法:

<meta http-equiv="X-UA-Compatible" content="IE=9">

Add a space after the text of the anchor tag, just before the closing </a> tag. 在anchor标记的文本之后,紧靠</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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM