css清除默认样式和设置公共样式
2017-12-12 17:58
741 查看
/*公共样式--开始*/ html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select { margin: 0; padding: 0; } *{box-sizing: border-box;} html, body { min-height: 100%; } body { font-family: "Microsoft YaHei"; font-size:14px; color:#333; } h1, h2, h3, h4, h5, h6{font-weight:normal;} ul,ol { list-style: none; } img { border: none; vertical-align: middle; } a { text-decoration: none; color: #232323; } table { border-collapse: collapse; table-layout: fixed; } input, textarea { outline: none; border: none; } textarea { resize: none; overflow: auto; } .clearfix { zoom: 1; } .clearfix:after { content: "."; width: 0; height: 0; visibility: hidden; display: block; clear: both; overflow:hidden; } .fl { float: left } .fr { float: right } .tl { text-align: left; } .tc { text-align: center } .tr { text-align: right; } .ellipse { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .inline{ display: inline-block; *display: inline; *zoom: 1; }
相关文章推荐
- 清除所有默认样式的CSS代码
- 清除所有默认样式的CSS代码
- 详解CSS设置默认字体样式
- [转]解析CSS设置默认字体样式
- [CSS]clearfix 清除浮动元素及去掉浏览器默认样式
- 清除默认样式 css
- CSS 清除默认样式模版
- jquery滚动条美化Scrollbar设置浏览器默认滚动条CSS美化样式特效
- normalize.css用这个来设置默认样式,不要用reset.css
- 详解CSS设置默认字体样式
- css去除chrome浏览器输入框默认样式填充及chrome浏览器滚动条样式设置
- 移动web开发清除默认样式设置
- Normalize.css的功能用处,是不是重置浏览器默认样式表?
- 使用 CSS 去掉 iPhone 网页上按钮的默认圆角样式
- CSS分别设置Input样式(按input类型
- CSS(六)— 样式设置
- 用css来设置div的样式
- CSS分别设置Input样式(按input类型)
- CSS——样式设置技巧(居中和隐藏)
- CSS设置input placeholder文本的样式