通用样式01

@charset "utf-8";
/* ------------------------------------全局定义---------------------------------------- */
/* 将具有默认margin和padding的标记置零,所有标记的margin、padding都在使用时具体定义 */
*{ margin:0;padding:0;}/* 修正IE5.x和IE6的斜体溢出bug */
* html body{ overflow:visible;}
* html iframe, * html frame{ overflow:auto;}
* html frameset{ overflow:hidden;}/* 常用标签,基本标签默认样式取消,HTML标签,取消基本标签默认样式,防止不同浏览器显示效果不同,text-align:center; 解决不同浏览器居中问题 */
body{ color:#000; background:#FFF; font:12px/22px Verdana,Arial,sans-serif,"Times New Roman",宋体; text-align:center;}
body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,tr{ margin:0; padding:0;}
input,select{ font-size:12px; vertical-align:middle;}/* 设置内容左对齐,恢复因BODY设置剧中产生的继承 */
body div{ text-align:left;}/* 标签属性,textarea,input 强制输入时内容超出时换行 */
textarea,input{ word-wrap:break-word; word-break:break-all; padding:0px;}/* 清除ul列表标记的样式,ul列表更多的用在不需要列表前置符号的样式里 */
li{ list-style-type:none;}/* 定义图片边框,当图片作为链接内容被填充时,会有默认边框出现,重定义掉 */
img{ border:0 none;}/* 定义默认的链接样式,仅仅是作为默认样式提供,可以在各自的实例中覆盖掉 */
a:link, a:visited{ color:#04C; text-decoration:none;}
a:hover{ color:#F60; text-decoration:underline;}/* 去掉链接的虚线框 */
a { outline:none; star:expression(this.onFocus=this.blur());}/* 定义H系列标签,覆盖H系列标签默认属性 */
h1{ font-size:24px;}
h2{ font-size:20px;}
h3{ font-size:18px;}
h4{ font-size:16px;}
h5{ font-size:14px;}
h6{ font-size:12px;}

通用样式02

@charset "utf-8";
/* CSS Document */
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 {margin:0;padding:0;}
body, button, input, select, textarea {font:12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;}
h1, h2, h3, h4, h5, h6 {font-size:100%;}
address, cite, dfn, em, var {font-style:normal;}
code, kbd, pre, samp {font-family:courier new, courier, monospace;}
small {font-size:12px;}
ul, ol {list-style:none;}
a {text-decoration:none;}
a:hover {text-decoration:underline;}
sup {vertical-align:text-top;}
sub {vertical-align:text-bottom;}
legend {color:#000;}
fieldset, img {border:0;}
button, input, select, textarea {font-size:100%;}
table {border-collapse:collapse;border-spacing:0;}

通用样式03

@charset "utf-8";
/* CSS Document */
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,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{ margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-style:inherit; font-size:100%; font-family:inherit; vertical-align:baseline; text-decoration:none; }
:focus { outline:0; }
table { border-collapse:separate; border-spacing:0; }
caption, th, td { height:30px; font-weight:normal; }
a img, iframe { border:none; }
ol, ul { list-style:none; }
input, textarea, select, button { font-size:100%; font-family:inherit; }
select { margin:inherit;}
body { font-size:12px; font-family:"宋体"; } 

通用样式04

@charset "utf-8";
/* CSS Document */
*{padding:0;margin:0;}
div,dl,dt,dd,form,h1,h2,h3,h4,h5,h6,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;background:#FFF;color:#212121;
line-height:30px; background:#e6e6e6;}
html{overflow-y:scroll;}
ul,ol{list-style-type:none;}
th,td,input{font-size:12px;}
h3{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;} 

通用css样式模板,相关推荐

  1. dw的css样式怎么删除掉,三种方法教你DreamWeaver下如何应用CSS样式

    首先介绍一下CSS样式的属性: CSS样式属性被分为八大类:类型,背景,区块,边框,列表,定位,扩展. 类型主要定义文本的字体,大小,颜色,行高和修饰等.如图所示: 方法一: 内联样式可以通过styl ...

  2. DreamWeaver下如何应用CSS样式

    首先介绍一下CSS样式的属性: CSS样式属性被分为八大类:类型,背景,区块,边框,列表,定位,扩展. 类型主要定义文本的字体,大小,颜色,行高和修饰等.如图所示: 方法一: 内联样式可以通过styl ...

  3. uniapp实战项目 (仿知识星球App) - - 配置开发工具和全局css样式

    实战项目名称:仿知识星球App 技术栈:前端 => uni-app ( 后端:Node.js + Mysql + Apollo + Graphql ) 已实现功能:微信登录,创建星球,内容管理, ...

  4. dw怎么让html使用css样式,dw怎么用css样式?

    dw怎么用css样式? 首先介绍一下CSS样式的属性: CSS样式属性被分为八大类:类型,背景,区块,方框,边框,列表,定位,扩展. 类型主要定义文本的字体,大小,颜色,行高和修饰等.如图所示: 方法 ...

  5. 动态加载html 添加样式表,使页面动态加载不同CSS样式表,从而实现不同风格模板的方法...

    我们在制作网页时,有时会制作多种风格模板,而想把这些模板都用起来,而又不知道方法,通过以下两种方法,你就可以实现相同网站不同CSS模板的方法. ASP.Net中利用CSS实现多界面两种方法. 方法一: ...

  6. Freemarker模板框架页面css样式等不起效

    使用Freemarker模板框架页面css样式等不起效 这里看到正常引入,并且可以通过快捷方式点击进入链接css文件等进行查看 但是页面并没有正常加载到css样式: 结合之前关于配置文件proport ...

  7. html表ge模板_html css表格样式模板

    在html的css样式表中,为表格定义CSS样式#ta,tr,td,th{ } ta是我自己定义的名字,怎么后边可以直接跟tr,td,th 如果你是要给 "ta表格"设置样式. # ...

  8. android 字体css样式大全,移动前端一些重置样式模板和标签入门

    工作了有一段时间,基本上都在搞移动端的前端开发,工作的过程中遇到过很多问题,bug的解决方案,记录下来,以便后用!!!内容并不是很全,以后每遇到一个问题都会总结在这里,分享给大家! 一.meta标签相 ...

  9. html5外置样式表,HTML5移动端通用css详解

    HTML5移动端通用css 下面是common.css内容 /*css初始化*/ /*清除内外边距*/ body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd, ...

  10. ace.css模板,4.2 引入ACE主题的CSS样式

    # 引入ACE模版的CSS样式 ## 1. horizon\openstack_dashboard\themes\maintenance\static\bootstrap\_variables.scs ...

最新文章

  1. 小数加分数怎样计算讲解_2020人教版三年级下册数学知识点汇总带视频讲解,让孩子在学习!...
  2. hihoCoder #1068 : RMQ-ST算法(模板)
  3. MyBatis源码-解读Executor的三个实现类之SimpleExecutor(简单执行器)
  4. Openlayers中点击地图获取坐标并输出
  5. msdn windows server 按电源事件api_【tornado源码分析】I/O事件循环机制与多进程
  6. 人工智能AI实战100讲(二)-自动驾驶传感器之激光雷达(一)激光雷达为何必不可少?
  7. php数组在golang,go语言数据类型-数组(array)
  8. android来电事件,android – 来电时没有响铃事件
  9. C++Primer第5版学习笔记(三)
  10. k8s升级从1.13到1.16教程与采坑解决办法
  11. Illustrator中文版教程,如何在 Illustrator 中快速连接和修剪路径?
  12. Sql2000数据库的备份文件恢复到Sql2005的方法
  13. windows10系统精简:NTlite工具
  14. 与骗子约会:浅谈欺诈性约会APP的生态
  15. otc机器人tp_发那科机器人TP 示教器按键使用简介
  16. win11运行gnuplot报错:This application failed to start because no Ot platform plugin could be initialized
  17. 深入理解计算机系统第四章(4.55-4.58)
  18. Unity 将图片转换成 sprite 格式
  19. 网速由100M变成10M的原因与解决方法
  20. mysql doesn t exist_Mysql的“Table 'mysql.servers' doesn't exist”的解决方法

热门文章

  1. 使用 Cloudflare 进行域名跳转(重定向)
  2. 服务器word文档会是只读的,WORD文档一保存就提示只读是什么原因
  3. 火车采集器V9入门之网址采集 实例讲解
  4. P2184 贪婪大陆(线段树或树状数组+思维)
  5. debian7 软件源更新
  6. MFI认证——苹果MFI认证流程
  7. 计算机主板型号进bios,hp主板进入bios的方法(电脑进入BIOS的两种实用方法)
  8. 《英语语法新思维初级教程》学习笔记(八)一般时态
  9. 机器学习基础教程——最小二乘法案列
  10. python docx_python-docx 入门