span border-top,border-bottom属性在IE不显示解决方法,兼容IE ,Chrome,Firefox
来源:互联网 发布:linux不能查看历史命令 编辑:程序博客网 时间:2024/06/06 00:42
默认情况下。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
- span border-top,border-bottom属性在IE不显示解决方法,兼容IE ,Chrome,Firefox
- IE浏览器兼容CSS3新属性border-radius
- css中“border”在chrome与ie中的不同
- IE兼容border-radius的方法
- pasteHTML兼容ie,firefox,chrome
- FLASH兼容IE FireFox Chrome
- firefox不显示border的解决办法
- 如何让margin在IE、Firefox、Chrome、Safari下兼容
- 兼容IE/FF的统一定义input的border 同时不包含radio/checkbox
- border-bottom-left-radius 属性
- ie和firefox不兼容的解决方法集合
- firefox不兼容ie的event对象解决方法
- IE与Firefox属性float不兼容使用clearboth
- 解决网站中上传的图片在IE中不显示 chrome firefox下却正常
- 网页在IE、Firefox、Opera中显示不兼容方法(包括CSS和JS)
- js中new Date(string)在IE不兼容报错:显示NaN,chrome没问题
- firefox与chrome在border-image属性下的一些区别
- 行内元素border-bottom在IE7下不生效
- spring 的定时器
- VC++ 写Dll和调用
- java基础整理二十四(网络编程二)
- JAVA学习笔记——Date与String之间的相互转换
- java基础整理二十五(正则表达式)
- span border-top,border-bottom属性在IE不显示解决方法,兼容IE ,Chrome,Firefox
- java基础加强(一)
- 如何把阿拉伯数字转换为中文大写?
- git技巧:删除在本地的但在远程库中已经不存在的分支
- getaddrinfo()函数详解
- 基础加强(二)
- bzoj 1901 动态求k大值
- java 实现数据结构之队列
- 7k面试题