htmlcss美化模板,通⽤css样式,全局css样式,css样式模板,编写⼀段时间的html⽹页,借鉴和总结了⼀些样式,下⾯我把⼀些通⽤的css样式搬了过来,希望以后直接来搬去节省时间,虽然通⽤样式⼀讲得⽐较详细,但个⼈建议⽤后边的通⽤模板
通⽤01
@charset "";
/* ------------------------------------全局定义---------------------------------------- */
sql server2008中文版/* 将具有默认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;}
linux系统下载ubuntu/* 清除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:Focus=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 */
axis bankbody,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;}matlab读取excel数据命令
ul, ol {list-style:none;}
a {text-decoration:none;}
a:hover {text-decoration:underline;}
html个人网页完整代码div+csssup {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,fon 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;}
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论