Home >Web Front-end >HTML Tutorial >小问题._html/css_WEB-ITnose

小问题._html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:39:59871browse

<div style="background-color: Black; width: 20px; height: 60px;">        <img  src="Images/Car/1B01.png" / alt="小问题._html/css_WEB-ITnose" >        <span   style="max-width:90%">dddddd</span>    </div>

这么简单的一段代码为什么在兼容性中运行,span的borderbottom不显示颜色?


回复讨论(解决方案)

span是内联元素,要加上display:inline-block;

IE8兼容模式下测试代码: http://jsfiddle.net/uwWc2/

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