An open API service indexing awesome lists of open source software.

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 练习

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 ;