概述
css样式初始化:
首先:这是让app页面高度为屏幕的100%,而不是由内容撑开:
html, body, #app{ height: 100%; margin: 0; padding: 0;}
接下来是页面初始化:
html,body,#app{height:100%;margin:0;padding:0}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,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,menu,nav,output,ruby,section,summary,time,mark,audio,video,input,button,textarea,select{margin:0;padding:0;font-weight:normal;border:0;vertical-align:baseline}body{line-height:1}ul,ol{list-style:none}input,button,textarea,select,input:focus,textarea:focus{background:0;outline:0}textarea{resize:none;overflow:auto}select{border:0}a,button{cursor:pointer}a{text-decorattion:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}button,input,optgroup,select,textarea{-webkit-appearance:none}a,button,input,optgroup,select,textarea{-webkit-tap-highlight-color:transparent}a,img{-webkit-touch-callout:none}video,img{vertical-align:top}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{display:block;margin:0;padding:0}mark{background:0}sub,sup{vertical-align:baseline}:link,:visited,ins{text-decoration:none}:focus{outline:0}::selection{background:#54bd4c;color:#fff}::-moz-selection{background:#54bd4c;color:#fff}::-webkit-selection{background:#54bd4c;color:#fff}.fl{float:left}.fr{float:right}.clear{clear:both}.clearoutline:focus{outline:0}a:link{text-decoration:none}html,body,#app{height:100%;margin:0;padding:0}uni-page-body,#app{height:100%}@media (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2){html{font-size:117.1875px}}@media (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3){html{font-size:129.375px}}
对我来说。一般这些就够了。
最后
以上就是勤劳啤酒为你收集整理的初始化-index.css的全部内容,希望文章能够帮你解决初始化-index.css所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复