background: transparent url(../images/bbs_sprite.png)no-repeat 0px -1303px; IE8 兼容写法
来源:互联网 发布:阿里云客服能用手机吗? 编辑:程序博客网 时间:2024/04/30 01:51
最近一直在调浏览器兼容的问题,问题千奇百怪,原因千奇百怪,现象千奇百怪:
今天遇到一个让我真心无语的问题,折腾了一上午,和大家分享一下:
描述一下我的问题:做了一个消息提示,但是发现,360 兼容模式,IE8 是没有提示的,也就是使用IE8 内核的浏览器都没哟提示,其他情况下都可以;
后来终于发现:
1.IE8 内核是不能识别transparent 的;
2. background: transparent url(../images/bbs_sprite.png)no-repeat 0px -1303px;
background: transparent url(../images/bbs_sprite.png) no-repeat 0px -1303px;
上面这两种写法看似是一样的,但是no-repeat 前面的空格至关重要,也就是IE8 对css 的格式要求比较高,必须加空格;
这个问题大家不是很容易发现,特地分享给大家
0 0
- background: transparent url(../images/bbs_sprite.png)no-repeat 0px -1303px; IE8 兼容写法
- background:url(../images/list01.png) no-repeat 0 center;是什么意思
- background:url(../images/list01.png) no-repeat 0 center;详解
- background:url(../images/list01.png) no-repeat 0 center;详解
- HTML&CSS——background: url() no-repeat 0 -64px;CSS中背景图片定位方法
- background: url(/images/img_navsprites.gif) -91px 0
- background:url(../images/list01.png) no-repeat各个字段的含义
- background-repeat:no-repeat
- 解决ie8-不兼容0.5px的问题
- IE8兼容background-size
- background-size 兼容ie8
- background-size 兼容ie8
- 对于CSS中 background:transparent none repeat scroll 0% 0%;的理解
- px
- px
- background-position:top left(关键字)、0px 0px(数值)、0% 0%(百分数)
- background:url(image/road.jpg) no-repeat center的基本用法介绍
- background-size兼容IE8解决方案
- Spring MVC防止数据重复提交
- 【PA2011】【BZOJ3069】Hard Choice 艰难的选择
- Scala中的下划线到底有多少种应用场景?
- Python执行系统命令的方法 os.system(),os.popen(),commands
- Google Protobuf 简单使用
- background: transparent url(../images/bbs_sprite.png)no-repeat 0px -1303px; IE8 兼容写法
- redis 配置文件示例
- 大数据资料收集
- MFC中CFileDialog文件过滤器lpstrfilter
- cocos2dx Camera类型
- C语言宏定义使用技巧
- python类中实现dict的功能
- List的子类
- mybatis缓存的使用及理解