CSS-PC reset模板
2018-05-08 18:11
399 查看
@charset "utf-8"; /* CSS Document author:dreambreeze*/ /** reset **/ body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td, img, div{ border:medium none; margin:0; padding:0; -moz-box-sizing:border-box; /*Firefox3.5+*/ -webkit-box-sizing:border-box; /*Safari3.2+*/ -o-box-sizing:border-box; /*Opera9.6*/ -ms-box-sizing:border-box; /*IE8*/ box-sizing:border-box; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ } body, button, input, select, textarea{ font:14px / 1.4286 'Microsoft Yahei', tahoma, Arial, helvetica, sans-serif; } h1, h2, h3, h4, h5, h6{ font-size:100%; } em{ font-style:normal; } ul, ol{ list-style:none; } a{ text-decoration:none; color:#333333; } a:hover{ text-decoration:none; color:#368DDA; -moz-transition:all 0.3s ease-in; -webkit-transition:all 0.3s ease-in; -o-transition:all 0.3s ease-in; transition:all 0.3s ease-in; } input, textarea, select, a{ outline:none; } input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], textarea, select { background-color:#FFFFFF; border:1px solid #CCCCCC; -webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition:border linear .2s, box-shadow linear .2s; -moz-transition:border linear .2s, box-shadow linear .2s; -o-transition:border linear .2s, box-shadow linear .2s; transition:border linear .2s, box-shadow linear .2s; display:inline-block; height:30px; padding:4px 6px; font-size:14px; color:#333333; line-height:20px; vertical-align:middle; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; } img, li{ border:0px; outline-width:0px; vertical-align:top; } html{ height:100%; width:100%; overflow-y:scroll; } :root{ overflow-y:auto; overflow-x:hidden; } :root body{ position:absolute; } body{ width:100vw; height:100%; background:#E4E6E9; color:#222222; } button, input[type="button"]{ cursor:pointer; } [disabled='disabled']{ cursor:not-allowed; } /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ ::-webkit-scrollbar{ width:16px; height:16px; background-color:#F5F5F5; } /*定义滚动条轨道 内阴影+圆角*/ ::-webkit-scrollbar-track{ -webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3); border-radius:10px; background-color:#F5F5F5; } /*定义滑块 内阴影+圆角*/ ::-webkit-scrollbar-thumb{ border-radius:10px; -webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, .3); background-color:#666666; }
相关文章推荐
- 移动端CSS初始化reset.css
- 重置样式 reset.css
- vue 使用Jade模板写html,stylus写css的方法
- 根据判断PC浏览器类型和手机屏幕像素自动调用不同CSS的代码
- reset.css
- CSS Reset 自己整理
- css的配置文件reset的总结
- reset.css css重置公共样式
- 左侧导航布局CSS网页模板
- 描述下 “reset” CSS 文件的作用和使用它的好处。
- 12款高质量的免费 CSS 网站模板下载
- CSS Tools: Reset CSS
- 浏览器兼容 3 CSS重设(reset)方法总结
- Django 继承模板应用CSS文件方法
- [Yii2] 快速套模板,加载JS,CSS(HTML标签<base>)
- [导入]免费css布局和模板集合
- 自己用的reset.css,大部分转载,加上自己常用的设置
- 分享45款高质量的免费(X)HTML/CSS模板
- 分享20个高质量的免费CSS模板
- reset.css