整理下自己写前台页面时用到的全局样式
2016-07-18 17:29
507 查看
@charset "utf-8"; body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td { margin:0; padding:0; } body { font-size:12px; color:#000; font-family:Verdana, Microsoft YaHei, Simsun; background:#fff; line-height:24px; } fieldset, img { border:0; } ol, ul { list-style:none; } h1, h2, h3, h4, h5, h6{ font-size:100%; } em { font-style:normal; } input, button, select, textarea { outline:none; } textarea { resize:none; } /*禁用了文本的拖拉,尤其在谷歌下*/ p{ text-align:justify; text-justify:distribute;} /*为了使文本段落左右两边对齐*/ a { color: #000; text-decoration:none; cursor:pointer; } a:hover { color: #f60; text-decoration:none; } /* 常用样式----------------------------------------*/ .left {float:left;} .right {float:right;} .clear {clear:both;} .small {font-size:.625em;} .large {font-size:1em;} .soft {color:#D3D3D3;} .hide {display:none;} p.last {margin-bottom:0px;} .container {width:100%;margin:0 auto;} .jz{width:980px; margin:0 auto;} /*调试用颜色*/ .b{background-color:blue;} .y{background-color:yellow;}
相关文章推荐
- stylelint — css书写规范
- Inline-block没有内容时,仍有高度
- CSS高级技巧:阴影效果
- css3属性 -webkit-filter
- [HTML/CSS]盒子模型,块级元素和行内元素
- CSS块级元素和行内元素
- 定位样式
- CSS ::selection伪类选择器
- CSS中不能被继承的元素
- CSS设置文字粗细
- 浏览器默认样式
- 用CSS 给网页装潢[3] -构造文本
- css网页布局中文字排版的属性和用法
- css基础知识汇总
- css 去除 a,checkbox 框 出现虚线
- display:inline-block的小注意
- JS/CSS收藏
- float/clear float的问题总结 (⌒▽⌒)
- css样式
- css引入错误的解决办法