https://github.com/pythoncat1024/html-css-javascript
html / css / javascript 练习
https://github.com/pythoncat1024/html-css-javascript
Last synced: 8 months ago
JSON representation
html / css / javascript 练习
- Host: GitHub
- URL: https://github.com/pythoncat1024/html-css-javascript
- Owner: pythoncat1024
- Created: 2018-03-19T15:12:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T14:27:45.000Z (almost 8 years ago)
- Last Synced: 2025-03-22T02:25:57.917Z (11 months ago)
- Size: 2.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
css 7天
- 选择器
CSS 三大特性:层叠性,继承性,优先级
CSS 优先级
> 默认样式 < 标签选择器 < 类选择器 < ID选择器 < 行内样式 < !important
* 继承的权重为0
* 权重会叠加
链接伪类:(需要按照顺序书写)
a:link {} 默认状态
a:visited {} 访问之后
a:hover {} 鼠标悬停
a:active {} 链接激活
a:focus {} 获取焦点
盒子模型:
盒子宽度 = width + padding-left + padding-right + border-left-width + border-right-width ;