简体   繁体   English

IE7的标签浮起的左bug

[英]IE7 a tag float left bug

HTML 的HTML

 <a href="#">M1</a>
 <a href="#">M2</a>
 <a href="#">M3</a>
 <a href="#" class="front">FirstONE</a>

CSS 的CSS

a.front{float:left;}

ONLINE SAMPLE: http://jsbin.com/anirot/2 在线示例: http//jsbin.com/anirot/2

the other browsers are fine just IE7 , looks front class cannot display at the front. 其他浏览器都很好,只是IE7 ,看起来front类无法显示在前端。 Is there any tricks could get it fixed? 有什么技巧可以解决吗? I've try display inline or block, doesnt help at all. 我尝试显示内联或块,根本没有帮助。 even *display:inline, zoom:1 甚至*display:inline, zoom:1

Thanks 谢谢

Put front link in HTML before other three ones. 将HTML中的front链接放在其他三个之前。 If you need exact HTML structure you've shown, move the element to corresponding position in HTML via JavaScript for IE7 only. 如果需要显示的确切HTML结构,则仅通过IE7的JavaScript将元素移动到HTML中的相应位置。

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

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