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

HTML, CSS #6

Open
wangbinyq opened this issue Feb 22, 2016 · 4 comments
Open

HTML, CSS #6

wangbinyq opened this issue Feb 22, 2016 · 4 comments
Labels

Comments

@wangbinyq
Copy link
Owner

No description provided.

@wangbinyq
Copy link
Owner Author

HTML

块级元素、行内元素

块级元素盒子会扩展到与父元素同宽
行内元素盒子会“收缩包裹”其内容,并且会尽可能包紧

@wangbinyq
Copy link
Owner Author

DOM 文档对象模型

@wangbinyq wangbinyq added the note label Feb 22, 2016
@wangbinyq
Copy link
Owner Author

CSS

选择器

  • 上下文选择器
  • ID、类选择器
  • 属性选择器
  • 伪类、伪元素

ID类命名

根据它们是什么,而不是外观如何命名

代码结构

  • 一般性样式
    • 主题样式
    • reset样式
    • 链接
    • 其他元素
  • 辅助样式
    • 表单
    • 通知和错误
    • 一致的条目
  • 页面结构
    • 标题、页脚和导航
    • 布局
    • 其他页面结构元素
  • 页面组件
    • 各个页面
  • 覆盖

@wangbinyq
Copy link
Owner Author

CSS布局

  • %宽度相对于父元素

@wangbinyq wangbinyq changed the title 前端 HTML, CSS Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant