文章分类 -  CSS——代码规范

摘要:html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, img, 阅读全文
posted @ 2016-09-03 20:28 阿巴阿巴55996 阅读(84) 评论(0) 推荐(0)
摘要:命名规范 引用一本书上写的命名法: 单词之间分割使用驼峰命名, 表从属关系用下划线命名. 英文命名是共识, 但层次多了显然会变长. 所以明显的划分还是很必要的. 1.常用的css命名规范 头:header 内容:content/container 尾:footer 导航:nav 侧边:sidebar 阅读全文
posted @ 2016-09-03 20:27 阿巴阿巴55996 阅读(109) 评论(0) 推荐(0)
摘要:层叠规则查理版简单层叠要点 在这个查理版里,只要记住三条规则就够了。这三条规则适合所有情况。 规则一: 包含ID 的选择符胜过包含类的选择符,包含类的选择符胜过包含标签名的选 择符。 规则二: 如果几个不同来源都为同一个标签的同一个属性定义了样式,行内样式胜过嵌入样 式,嵌入样式胜过链接样式。在链接 阅读全文
posted @ 2016-09-03 20:26 阿巴阿巴55996 阅读(117) 评论(0) 推荐(0)
摘要:布局定位属性–>自身属性–>文本属性–>其他属性. display || visibility position top || right || bottom || left z-index clear float width max-width || min-width height max-he 阅读全文
posted @ 2016-09-03 20:25 阿巴阿巴55996 阅读(188) 评论(0) 推荐(0)
摘要:布局定位属性–>自身属性–>文本属性–>其他属性. display || visibility position top || right || bottom || left z-index clear float width max-width || min-width height max-he 阅读全文
posted @ 2016-08-28 16:22 阿巴阿巴55996 阅读(93) 评论(0) 推荐(0)