您的位置:首页 > 运维架构

span border-top,border-bottom属性在IE不显示解决方法,兼容IE ,Chrome,Firefox

2013-10-23 18:16 633 查看
默认情况下。span设置了宽度不管用~ 多加一个css ----------------display:inline-block

<html>

<head>

</head>

<body>

<div style="width:460px;height:20px;line-height:20px;margin:0 auto; text-align:center;border:1px red solid;font-size:12px;">

<span style="width:48px;height:20px;line-height:20px;border:1px solid #333;display:inline-block;">首页</span>

<span style="width:48px;height:20px;line-height:20px;border:1px solid #333;display:inline-block;">1</span>

<span style="width:70px;height:20px;line-height:20px;border:1px solid #333;display:inline-block;">下一页</span>

</div>

</body>

</html>

原文出自:http://blog.csdn.net/jiushuai/article/details/5692353
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: