vue css重置样式
vue css重置样式有两种方式。
第一种在App.vue中通过@import引入
<style lang="css">
@import '@/css/reset.css'
</style>
第二种是在index.html中通过link引入。
重置样式如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | a,address,b,big,blockquote,body, center ,cite, code ,dd,del,div,dl,dt,em,fieldset,font,html,i,iframe, img,ins,label,legend,li,ol,p, pre , small ,span,strong,u,ul,var { margin : 0 ; padding : 0 ; outline : none ; } ul,li,ol{ list-style : none ; outline : none ;} img,fieldset{ border : 0 ; } img{ display : block ; outline : none ;} a{ text-decoration : none ; outline : none ;} h 1 ,h 2 ,h 3 ,h 4 ,h 5 ,h 6 { font-weight : 100 ;} body{ font-size : 12px ; outline : none ;} input,a{ outline : none ;} em,i,u { font-style : normal } .fl { float : left } .fr { float : right } .al { text-align : left } .ac { text-align : center } .ar { text-align : right } . hide { display : none } .clearfix::after { content : "" ; display : block ; clear : both ; width : 0 ; height : 0 ; visibility : hidden ; } |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术