CSS
2016-04-25 19:34
961 查看
CSS
1.css属性
background-color
border
color
font-size
height
padding
text-decoration 设置元素文字的装饰效果,如下划线underline
width
2.CSS样式使用
方式一:
style=”background-color: grey; color: white”
方式二:
a {
background-color: grey;
color: white
}
方式三:
方式四:
@import导入.css (@charset设置编码格式)
3.样式查找顺序
style属性内嵌样式
style元素内嵌样式
link外部样式
用户样式
浏览器样式
4.重要样式调整层叠次序
!important
5.CSS中重要的4种选择器
6.inherit强制继承
文字字体颜色可继承
其他的样式可以通过强制继承(inherit)
7.推荐CSS小工具
blueprint
SelectorGadget
1.css属性
background-color
border
color
font-size
height
padding
text-decoration 设置元素文字的装饰效果,如下划线underline
width
2.CSS样式使用
方式一:
style=”background-color: grey; color: white”
方式二:
a {
background-color: grey;
color: white
}
方式三:
方式四:
@import导入.css (@charset设置编码格式)
3.样式查找顺序
style属性内嵌样式
style元素内嵌样式
link外部样式
用户样式
浏览器样式
4.重要样式调整层叠次序
!important
5.CSS中重要的4种选择器
6.inherit强制继承
文字字体颜色可继承
其他的样式可以通过强制继承(inherit)
7.推荐CSS小工具
blueprint
SelectorGadget
相关文章推荐
- getstyle() 获取样式
- CSS颜色值,长度值
- CSS 3 的动画功能
- CSS选择器
- CSS格式化版本 属性设置
- CSS元素分类
- CSS盒模型
- CSS布局模型
- CSS代码缩写,占用更少的宽带
- CSS 将超出显示宽度的内容隐藏起来(转)
- 通过SpannableString 设置 TextView样式
- 纯css3制作的太阳地球月亮效果
- WPF样式和行为
- @media是什么?css3 @media媒体查询器用法
- CSS
- 前端js与css兼容性问题
- WPF 美化界面,样式的使用
- CSS自动换行、强制不换行、强制断行、超出显示省略号
- CSS实现横向粒子变动加载动画
- ie浏览器兼容性css