博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
区分IE和Firefox浏览器的CSS样式写法
阅读量:4044 次
发布时间:2019-05-24

本文共 243 字,大约阅读时间需要 1 分钟。

浏览器基本区分为两大阵营,市场占有率巨头IE和以Firefox代表的部分,其中包括Opera、Safari、Chrome等,针对标准的支持不同,样式表也需智能的区分何种浏览器,以决定具体的样式,其中常用的方法就是下例

 

#content {	width: 100%;	height: 97% !important; height: 97.5%;}

 

因important标识IE无法识别,所以important前的样式将用于Firefox,后边的样式用于IE。这个也算是Web开发的小技巧。

转载地址:http://kjhdi.baihongyu.com/

你可能感兴趣的文章
[leetcode BY python]1两数之和
查看>>
微信小程序开发全线记录
查看>>
PTA:一元多项式的加乘运算
查看>>
CCF 分蛋糕
查看>>
解决python2.7中UnicodeEncodeError
查看>>
小谈python 输出
查看>>
Django objects.all()、objects.get()与objects.filter()之间的区别介绍
查看>>
python:如何将excel文件转化成CSV格式
查看>>
机器学习实战之决策树(一)
查看>>
机器学习实战之决策树二
查看>>
[LeetCode By Python]7 Reverse Integer
查看>>
[leetCode By Python] 14. Longest Common Prefix
查看>>
[LeetCode By Python]118. Pascal's Triangle
查看>>
[LeetCode By Python]121. Best Time to Buy and Sell Stock
查看>>
[LeetCode By Python]122. Best Time to Buy and Sell Stock II
查看>>
[LeetCode By Python]125. Valid Palindrome
查看>>
[LeetCode By Python]136. Single Number
查看>>
[LeetCode By MYSQL] Combine Two Tables
查看>>
Android下调用收发短信邮件等(转载)
查看>>
Android中电池信息(Battery information)的取得
查看>>