Skip to content

pythoncat1024/html-css-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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 ;

About

html / css / javascript 练习

Resources

Stars

Watchers

Forks

Packages

No packages published