CSS格式化代码(国内各大网站)
2020-07-18 05:08
465 查看
京东格式化CSS代码
/*京东格式化CSS代码*/ /*把所有标签的默认内外边距清零*/ * { margin: 0; padding: 0 } /*em 和 i 斜体文字不倾斜*/ em, i { font-style: normal } /*去掉li的小圆点*/ li { list-style: none } img { /*border: 0;照顾低版本浏览器 如果 图片外面包含了链接会有边框的问题 */ border: 0; /*取消图片底部有空白缝隙的问题*/ vertical-align: middle } button { /*当鼠标经过按钮时,鼠标变成小手*/ cursor: pointer } a { color: #666; /* 取消链接下划线*/ text-decoration: none } /*链接鼠标经过,改变颜色*/ a:hover { color: #c81623 } button, input { font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif } body { /*CSS3 抗锯齿*/ -webkit-font-smoothing: antialiased; background-color: #fff; font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif; color: #666 } /*自定义隐藏*/ .hide, .none { display: none } /*自定义清除浮动*/ .clearfix:after { visibility: hidden; clear: both; display: block; content: "."; height: 0 } .clearfix { *zoom: 1 }
腾讯CSS格式化代码
html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; font-size: 100px; } body { color: #fff; line-height: 1.5; font-size: 14px; font-family: 'PingFangSC-Regular', 'helvetica neue', tahoma, 'PingFang SC', 'microsoft yahei', arial, 'hiragino sans gb', sans-serif; -webkit-font-smoothing: antialiased; } 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, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; padding: 0; border: 0; background: 0; } button:focus, input:focus, optgroup:focus, select:focus, textarea:focus { /*设置没有文本修饰(默认也是none)*/ text-decoration: none; /*移动端 当点击一个链接或者通过Javascript定义的可点击元素的时候,它就会出现一个半透明的灰色背景,这里设置颜色为黑色*/ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /*去掉文本框获取焦点是的蓝色框*/ outline: none; } textarea { /*去掉多行文本框拖拽功能*/ resize: none; } img { border: 0; /*通过设置图片与文字底线对齐,来消除图片底部空白间隙*/ vertical-align: bottom; } a { text-decoration: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /*消除下划线*/ outline: none; } a, a:hover, a:active, a:visited, a:link, a:focus { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: transparent; outline: none; background: none; text-decoration: none; } ul, li { /*清除列表小圆点*/ list-style: none; } h1, h2, h3, h4, h5, h6 { font-size: 100%; font-variant: normal; } /*clearfix 清除浮动*/ .clearfix:before, .clearfix:after { content: ""; display: table; } .clearfix:after { clear: both; overflow: hidden; } /*自定义清除边距类*/ .clear-p-t { padding-top: 0 !important; } .clear-margin { margin: 0 !important; } .clear-b-margin { margin-bottom: 0 !important; } .light { color: #0052D9; } .p-light { padding-left: 5px; }
百度CSS格式化代码
blockquote, body, button, dd, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, hr, input, legend, li, ol, p, pre, td, textarea, th, ul { margin: 0; padding: 0 } html { color: #000; overflow-y: scroll; overflow: -moz-scrollbars } body, button, input, select, textarea { font: 12px arial } h1, h2, h3, h4, h5, h6 { font-size: 100% } em { font-style: normal } small { font-size: 12px } ol, ul { list-style: none } a { text-decoration: none } a:hover { text-decoration: underline } legend { color: #000 } fieldset, img { border: 0 } button, input, select, textarea { font-size: 100% } table { border-collapse: collapse; border-spacing: 0 } img { -ms-interpolation-mode: bicubic } textarea { resize: vertical } .left { float: left } .right { float: right } .overflow { overflow: hidden } .hide { display: none } .block { display: block } .inline { display: inline } .error { color: red; font-size: 12px } button, label { cursor: pointer } .clearfix:after { content: '\20'; display: block; height: 0; clear: both } .clearfix { zoom: 1 } .clear { clear: both; height: 0; line-height: 0; font-size: 0; visibility: hidden; overflow: hidden } .wordwrap { word-break: break-all; word-wrap: break-word } .s-yahei { font-family: arial, 'Microsoft Yahei', '微软雅黑' }
相关文章推荐
- 国内2大Git代码托管网站
- 网站变黑白色CSS一行代码实现
- 网页html/js/css错误代码在线检测网站汇总
- Dreamweaver CS5 CS6 代码格式化、美化插件(可同一时候格式化HTML、JavaScript、CSS )眼下最好用的代码格式化扩展
- 地震 网站变成灰黑色 css 代码
- 使用Sublime Text 3的HTML-CSS-JS Prettify插件格式化代码
- 解决网站项目本地运行ok,将代码上传到服务器中或github中无CSS效果
- 网站变为黑白的CSS代码——哀悼玉树地震中遇难同胞
- 网站整站页面变灰的css代码
- 减小JS大小和CSS代码让你网站速度提升
- 【转载】如何查看高手BLOG网站的CSS代码
- div+css实现软件公司网站蓝色导航菜单代码
- 如何查看高手的BLOG网站的CSS代码
- 恰当精简css代码让网站运转功率更高
- HTML/CSS/Javascript代码在线压缩、格式化(美化)工具
- 用CSS代码让网站图片变灰
- 使用Sublime Text 3的HTML-CSS-JS Prettify插件格式化代码
- 各大网站CSS代码初始化集合
- python3编写CSS文件格式化代码
- 1.制作字体图标网站https://icomoon.io 2.制作bootstrap按钮样式,生成css代码 http://blog.koalite.com/bbg/