摘要: 1.常用的css命名规范头:header内容:content/container尾:footer导航:nav侧边:sidebar栏目:column页面外围控制整体布局宽度:wrapper左右中:left right center登录条:loginbar标志:logo广告:banner页面主体:mai... 阅读全文
posted @ 2015-07-31 14:54 乐少007 阅读(166) 评论(0) 推荐(0) 编辑
摘要: .all IE{property:value\9;}.gte IE 8{property:value\0;}.lte IE 7{*property:value;}.IE 8/9{property:value\0;}.IE 9{property:value\9\0;}.IE 7{+property:v... 阅读全文
posted @ 2015-07-31 14:48 乐少007 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 在页面顶部设置 doctype是为了统一标准浏览器有标准模式和怪异模式而这两种模式最大区别就是 盒模型的解析不同==============================图片摘自网络==========================比如IE width=100px padding=20px; 那... 阅读全文
posted @ 2015-07-31 11:24 乐少007 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1、行内样式,指的是html文档中定义的style行内样式包含在你的html中 对你的元素产生直接作用,比如:header2、ID选择器Id也是元素的一种标识,比如#div3、类,属性选择器和伪类选择器这一类包括各种class,属性选择器,伪类选择器比如 :hover,:focus等等。4、元素和伪... 阅读全文
posted @ 2015-07-31 09:15 乐少007 阅读(188) 评论(0) 推荐(0) 编辑
摘要: @charset "utf-8";html { overflow-x: hidden; overflow-y: auto;}/*隐藏横向滚动,垂直滚动根据内容自适应(去除IE默认垂直滚动条)*/body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol... 阅读全文
posted @ 2015-07-31 08:56 乐少007 阅读(339) 评论(0) 推荐(0) 编辑