reset.css页面样式初始化
生活随笔
收集整理的這篇文章主要介紹了
reset.css页面样式初始化
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
這個是所有HTML頁面樣式初始化,一般輸入的樣式…這里直接寫出來,以后寫樣式前,一定引入這個文件
reset.css
@charset "utf-8"; *{margin:0;padding:0;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);-webkit-box-sizing: border-box;-moz-box-sizing: border-box;}html {/*height:100%;*/min-height: 100%;font-size: 100%;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%; }body {width: 100%;/*height:100%;*/min-height: 100%;font-family:"Microsoft YaHei","微軟雅黑","MicrosoftJhengHei","華文細黑","Helvetica", "Arial", "sans-serif";font-size: 14px;position: relative;word-break:break-all; }a {text-decoration: none;-webkit-tap-highlight-color: rgba(0, 0, 0, 0.35);-webkit-box-sizing:border-box; }img {-ms-interpolation-mode: bicubic;vertical-align: middle; }img:not([src*="/"]) {display: none; }table {border-collapse: collapse;border-spacing: 0; }/*th, td, caption {vertical-align: middle; }*/textarea {resize: none; }input, button, select, textarea {-webkit-appearance:none;outline: none;border-radius: 0; } input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {-webkit-appearance: none !important;margin: 0; } /*input:valid{visibility: visible;}*/ /*input::-webkit-input-placeholder {display: block;width:100%;height:100%;color:#00f;background:url(../imgs/w_7.png) no-repeat center -120px;-webkit-backgrond-size:30px auto;text-transform:uppercase;text-align: center;letter-spacing:3px; }*/ul,ol,li {list-style: none;-webkit-margin-before: 0;-webkit-margin-after: 0;-webkit-margin-start: 0;-webkit-margin-end: 0;-webkit-padding-start: 0; } .section-body .text {margin-top: 24px;margin-left: 40px;margin-right: 35px;width: 84%;font-family: "宋體";font-size: 18px; } .section-body .textImg{margin-top: 45px;color: blue;text-align: center;vertical-align: middle; }總結
以上是生活随笔為你收集整理的reset.css页面样式初始化的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 找个爱你的人还是找个你爱的人
- 下一篇: 晚风来去吹香远蔌蔌冬青几树花什么意思