CSS
来源:互联网 发布:linux图形界面中文 编辑:程序博客网 时间:2024/09/21 08:44
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
0 0
- CSS
- css
- css
- css
- css
- CSS
- CSS
- css
- css
- CSS
- css
- css
- CSS
- css
- CSS
- css
- CSS
- css
- AMD授权中国企业研制销售X86服务器芯片
- JAVA输出日历(整合代码)
- Android Studio编译报错
- 按钮动画
- 搭建自己的ngrok服务
- CSS
- 使用Unity3D的50个技巧:Unity3D最佳实践
- mysql的查询、子查询及连接查询
- RecyclerView添加EmptyView
- 专题二1020
- iOS实现TableView中Cell出现时弹出动画
- mips 的内存映射问题
- Newtonsoft.Json(Json.Net)学习笔记
- linux 虚拟机详细搭建过程