通用全局CSS样式
PC全局样式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | *{ padding : 0 ; margin : 0 ;} div,dl,dt,dd,form,h 1 ,h 2 ,h 3 ,h 4 ,h 5 ,h 6 ,img,ol,ul,li,table,th,td,p,span,a{ border : 0 ;} img,input{ border : none ; vertical-align : middle ;} body{ font-family : Tahoma , Arial , Helvetica , "宋体" ; font-size : 12px ; text-align : center ; background : #FFF ; color : #000 ;} html{overflow-y: scroll ;} ul,ol{ list-style-type : none ;} th,td,input{ font-size : 12px ;} h 3 { font-size : 14px ;} button{ border : none ; cursor : pointer ; font-size : 12px ; background-color : transparent ;} select{ border-width : 1px ;_zoom: 1 ; border-style : solid ; padding-top : 2px ; font-size : 12px ;} .clear{ clear : both ; font-size : 1px ; height : 0 ; visibility : hidden ; line-height : 0 ;} .clearfix:after{ content : "" ; display : block ; clear : both ;} .clearfix{zoom: 1 ;} a:link,a:visited{ text-decoration : none ; color : #333 ;} a:hover,a:active{ text-decoration : underline ; color : #f60 ;} |
参考链接http://www.cnblogs.com/freespider/archive/2011/11/02/2232848.html
手机端h5全局样式
1 | html{-ms-text-size-adjust: 100% ;-webkit-text-size-adjust: 100% }body{ line-height : 1.6 ; font-family : "Helvetica Neue" , Helvetica , Arial , sans-serif }body,h 1 ,h 2 ,h 3 ,h 4 ,p,ul,ol,dl,dd,fieldset,textarea{ margin : 0 }fieldset,legend,textarea,input,button{ padding : 0 }button,input,select,textarea{ font-family :inherit; font-size : 100% ; margin : 0 ;* font-family : "Helvetica Neue" , Helvetica , Arial , sans-serif }ul,ol{ padding-left : 0 ; list-style-type : none }a img,fieldset{ border : 0 }a{ text-decoration : none } |
参考微信
作者:王家大人
出处:http://wms01.cnblogs.com
限于本人水平,如果文章和代码有表述不当之处,还请不吝赐教。
声明:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?