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
<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
相关文章推荐
- chrome,FireFox与IE中的不兼容问题以及解决方法——(不断更新)
- 解决Td内容为空时不显示边框的问题-兼容IE、firefox、chrome
- 常见浏览器兼容问题及相关解决方法(chrome/IE/firefox)
- 解决Td内容为空时不显示边框的问题-兼容IE、firefox、chrome
- JavaScript的常见兼容问题及相关解决方法(chrome/IE/firefox)
- IE显示对象不支持此属性或方法 的解决方法
- SCRIPT65535: 意外地调用了方法或属性访问 ie下不兼容 解决
- li在ie/firefox浏览器中行高不一致解决方法(浏览器兼容)
- JS实现pasteHTML兼容ie,firefox,chrome的方法
- 火狐FF和IE兼容下margin-top无效的解决方法
- JavaScript js 兼容浏览器问题 兼容FireFox(FF)、IE的解决方法
- JavaScript在IE和Firefox(火狐)的不兼容问题解决方法小结 【转】http://blog.csdn.net/uniqer/article/details/7789104
- 兼容firefox,ie,谷歌,阻止浏览器冒泡事件,Firefox不支持event解决方法
- ie和firefox不兼容的解决方法集合
- JavaScript的常见兼容问题及相关解决办法chrome IE firefox
- input file本地图片预览的方法(兼容IE、Chrome和Firefox)
- IE 和 Firefox 下 CSS 中 margin-left IE显示为两倍的解决方法
- 解决IE,Firefox,chrome,safari浏览器中iframe显示高度自适应问题
- 兼容IE & Firefox 的脚本改本属性值的检测方法 [ 不支持Chrome ]