Home  >  Article  >  Web Front-end  >  ul标签 ie7,ie8兼容怎么搞_html/css_WEB-ITnose

ul标签 ie7,ie8兼容怎么搞_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:301017browse

ul标签 ie7,ie8兼容怎么搞,为什么ie7的高度会高些啊??、不要使用 。。。

代码如下:

    


回复讨论(解决方案)

.cs-north-logo        {            height: 40px;            margin: 15px 0px 0px 5px;            display: inline-block;            color: #000000;            font-size: 22px;            font-weight: bold;            text-decoration: none;        }


这个里面的display=inline-block,ie7和ie7之前的版本,是没有这个属性的

浏览器对于不识别的属性,都是不作处理的,所以使用了它默认的属性,所以你那边模板的模块,是以块级元素显示的。

所以会换行了。。。

你可以让它向左浮动。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn