Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS: 哪些属性可以继承 #165

Open
leslie1943 opened this issue Feb 3, 2021 · 0 comments
Open

CSS: 哪些属性可以继承 #165

leslie1943 opened this issue Feb 3, 2021 · 0 comments

Comments

@leslie1943
Copy link
Owner

CSS-哪些属性可以继承

  1. 每一个属性在定义中都给出了这个属性是否具有继承性, 一个具有继承性的属性会在没有指定值的时候,会使用父级元素的同属性来作为自己的值
  2. 一般具有继承性的属性有, 字体的相关属性: font-size/font-weight
  3. 文本相关的属性: colortext-align
  4. 表格的一些布局属性, 列表属性和list-style
  5. 还要光标属性cursor,元素可见性visibility
  6. 当一个属性不是继承属性的时候, 我们也可以通过将他的值设置为inherit来使它从父元素那获取同名的属性值
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant