可以设置表单控件的outline属性为none值来去掉浏览器自带白色背景。
css代码如下:
input,
button,
select,
textarea{outline:none}
CSS(层叠样式表):
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。CSS不仅可以静态地修饰网页,还可以配合各种脚本语言动态地对网页各元素进行格式化。
CSS 能够对网页中元素位置的排版进行像素级精确控制,支持几乎所有的字体字号样式,拥有对网页对象和模型样式编辑的能力。
使用下面的代码body{background:#000CURSOR: url('http://webme.bokee.com/inc/mouse027.cur')}
#header{height:768px}
#header div.lc{background:url(http://heiheining.bloger.com.cn/UploadFiles/2007-1/113667687.jpg) no-repeat}
#header div.rc{background:url() no-repeat top right}
#header div.tit{top:8pxleft:20pxline-height:22pxfont-size:20pxfont-family:黑体}
#header div.tit a.titlink{color:#FFFFFFtext-decoration:none}
#header div.tit a.titlink:visited{color:#FFFFFFtext-decoration:none}
#header div.desc{top:33pxleft:20pxcolor:#FFFFFFfont-size:13px}
#tabline{top:89pxbackground-color:#FFFFFF}
#tab{top:67pxbackground:url() repeat-x}
#tab a.on,#tab a.on:link,#tab a.on:visited{margin-top:3pxborder-left:1px solid #FFFFFFborder-right:1px solid #FFFFFFborder-top:1px solid #FFFFFFline-height:22pxbackground-color:#DDDD22color:#42E61font-size:14px}
#tab span{color:#FFFFFFfont-size:14px}
#tab a:link{color:#FFFFFFtext-decoration:nonefont-size:14px}
#tab a:visited{color:#FFFFFFtext-decoration:nonefont-size:14px}
#tab2{background:#DAE9F5}
#tab2 span{color:#000000font-size:12pxfont-weight:bold}
#tab2 a{font-size:12px}
#tab2 a:link{color:#0000CC}
#tab2 a:visited{color:#0000CC}
.stage{}
#comm_info{color:#333333font-family:Arialtext-align:left}
#comm_info div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#comm_info a{color:#3399CC}
#page{height:30pxfont-size:14pxfont-family:Arialtext-align:center}
#page span{padding:3pxcolor:#000000font-size:14pxfont-weight:bold}
#page a.pc{color:#3399CCfont-size:14pxfont-weight:bold}
#page a.pc:visited{color:#3399CC}
#page a.pi{padding:3pxcolor:#3399CCfont-size:14px}
#page a.pi:visited{color:#3399CC}
.mod{margin-bottom:10px}
.modhandle{cursor:move}
.modth{height:24px}
.modhead{padding:4px 4px 0 4px}
.modopt{padding:4px 4px 0 0}
.modtit{color:#FFFFFFfont-size:12pxfont-weight:bold}a.modtit{color:#FFFFFF}a.modtit:visited{color:#FFFFFF}
.modtitlink{color:#FFFFFFfont-size:12pxfont-weight:bold}a.modtitlink{color:#FFFFFFtext-decoration:none}a.modtitlink:visited{color:#FFFFFFtext-decoration:none}a.modtitlink:hover{color:#FF5100text-decoration:underline}
.modact{color:#FFFFFFfont-size:12px}a.modact:link{color:#FFFFFF}a.modact:visited{color:#FFFFFF}
.modbox{padding:10px 10px 0 10px}
.modtl{background:url(http://heiheining.bloger.com.cn/UploadFiles/2007-1/113454635.bmp) no-repeat top leftline-height:1px}
.modtc{background:url(http://heiheining.bloger.com.cn/UploadFiles/2007-1/113454635.bmp) repeat-x}
.modtr{background:url(http://heiheining.bloger.com.cn/UploadFiles/2007-1/113454635.bmp) no-repeat top rightline-height:1px}
.modbl{}
.modbc{}
.modbr{}
.modlabel{color:#000font-size:14pxfont-weight:bold}
#m_blog div.tit{font-size:14pxfont-weight:bold}
#m_blog div.tit a{color:#333333font-size:14pxfont-weight:bold}
#m_blog div.tit a:visited{color:#333333}
#m_blog div.date{margin:5px 0 8px 0color:#666666}
#m_blog div.cnt{color:#333333line-height:20pxfont-size:14px}
#m_blog div.cnt div{font-size:14px}
#m_blog div.more{margin:14px 0 16px 0}
#m_blog div.more a{color:#3399CCfont-size:14px}
#m_blog div.more a:visited{color:#3399CC}
#m_blog div.opt{color:#666666font-size:12px}
#m_blog div.opt a{color:#3399CCfont-size:12px}
#m_blog div.opt a:visited{color:#3399CC}
#m_blog div.line{margin-top:17pxline-height:17pxborder-top:1px solid #D2E9F4}
#m_blog div.none{padding:100px 0 100px 0color:#333333font-size:14px}
#m_pro a{color:#3399CC}
#m_pro a:visited{color:#3399CC}
#m_pro div.image{text-align:center}
#m_pro div.act{margin-top:10px}
#m_pro div.user{margin-top:10pxcolor:#333333font-size:12pxfont-weight:bold}
#m_pro div.desc{color:#333333font-size:12px}
#m_pro div.line{margin-top:17pxline-height:17pxborder-top:1px solid #D2E9F4}
#m_pro td{color:#333333line-height:24pxfont-size:14px}
#m_pro .photo{background:#FFFborder:1px solid #DDD}
#m_pro .photo td{font-size:12px}
#m_pro .photo .image{padding:20px 0 10px 0}
#m_pro .photo .line{width:90%line-height:0border-top:1px dashed #DDDfont-size:1px}
#m_pro .ref{margin-top:10pxborder:1px solid #DDD}
#m_pro .ref .tit{padding-left:10pxbackground:#EEEborder-bottom:1px solid #DDD}
#m_pro .ref .cnt{padding:10pxbackground:#FFF}
#m_pro .basic td{color:#666font-size:14px}
#m_pro .basic .tit{font-weight:bold}
#m_pro .basic a:hover{padding:1pxbackground:#261CDCcolor:#FFFtext-decoration:none}
#m_pro .basic a.nlk:hover{padding:0pxcolor:#196CCAbackground-color:#FFFtext-decoration:underline}
#m_pro .pline{margin-left:5pxmargin-top:10pxline-height:10pxborder-top:1px dashed #A6A6A6}
#m_pro .pitem{margin-left:5pxline-height:22pxfont-size:14px}
#m_pro .pitem .tit{color:#666}
#m_pro .pitem a:hover{padding:1pxbackground:#261CDCcolor:#FFFtext-decoration:none}
#m_album div.image{text-align:center}
#m_album div.page{color:#666666font-size:12pxtext-align:center}
#m_album div.page a{color:#0000CCfont-size:12px}
#m_album div.page a:visited{color:#0000CC}
#m_album .phpage{margin-top:10pxpadding-bottom:5pxtext-align:center}
#m_links div.item{color:#333333font-size:12px}
#m_links div.item a{color:#3399CCfont-size:12pxtext-decoration:none}
#m_links div.item a:visited{color:#3399CC}
#m_links div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_mylink1 div.item{color:#333333font-size:12px}
#m_mylink1 div.item a{color:#3399CCfont-size:12pxtext-decoration:none}
#m_mylink1 div.item a:visited{color:#3399CC}
#m_mylink1 div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_mylink2 div.item{color:#333333font-size:12px}
#m_mylink2 div.item a{color:#3399CCfont-size:12pxtext-decoration:none}
#m_mylink2 div.item a:visited{color:#3399CC}
#m_mylink2 div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_mylink3 div.item{color:#333333font-size:12px}
#m_mylink3 div.item a{color:#3399CCfont-size:12pxtext-decoration:none}
#m_mylink3 div.item a:visited{color:#3399CC}
#m_mylink3 div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_mylink4 div.item{color:#333333font-size:12px}
#m_mylink4 div.item a{color:#3399CCfont-size:12pxtext-decoration:none}
#m_mylink4 div.item a:visited{color:#3399CC}
#m_mylink4 div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_artclg div.item{color:#666666font-size:12px}
#m_artclg div.item a{color:#3399CCfont-size:12px}
#m_artclg div.item a:visited{color:#3399CC}
#m_artclg div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_filed div.item{color:#666666font-size:12px}
#m_filed div.item a{color:#3399CCfont-size:12px}
#m_filed div.item a:visited{color:#3399CC}
#m_filed div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_comment div.item{color:#333333font-size:12px}
#m_comment div.item a{color:#3399CCfont-size:12px}
#m_comment div.item a:visited{color:#3399CC}
#m_comment div.item a.cnt{color:#333333font-size:12pxtext-decoration:none}
#m_comment div.item a.cnt:visited{color:#333333text-decoration:none}
#m_comment div.item a.cnt:hover{color:#333333text-decoration:underline}
#m_comment div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#m_albumlist div.note{color:#333333font-size:14px}
#m_albumlist div.desc{margin-bottom:12pxpadding:3px 10px 3px 10pxline-height:22pxbackground-color:#F2F2F2font-size:14px}
#m_albumlist div.none{padding:100px 0 100px 0color:#333333font-size:14px}
#m_albumlist div.line{margin-top:10pxline-height:16pxborder-top:1px solid #D2E9F4}
#m_albumlist div.tit{margin:6px 0 7px 0color:#333333font-size:14px}
#m_albumlist div.tit a{color:#3399CCfont-size:14px}
#m_albumlist div.tit a:visited{color:#3399CC}
#m_albumlist span.count{color:#666666font-size:12pxfont-weight:bold}
#m_albumlist span.size{color:#999999font-size:12pxfont-family:Arial}
#m_albumlist a.act{color:#3399CCfont-size:12px}
#m_albumlist a.act:visited{color:#3399CC}
#m_albumlist a.page{color:#0000CCfont-size:14px}
#m_albumlist a.page:visited{color:#0000CC}
#m_albumlist td.image{padding:5pxborder:1px solid #999999background:#FFFFFF}
#m_albumlist .phbox{margin-top:15pxmargin-left:15px}
#m_albumlist .phbox .phpage{color:#636363font-size:14px}
#m_albumlist .phbox .phinfo{margin:6px 0 2px 0color:#636363font-size:12px}
#m_albumlist .phbox .phimg{margin-bottom:10px}
#m_friend div.filter{margin-bottom:10pxpadding-left:10pxpadding-top:10pxheight:27pxline-height:27px}
#m_friend div.catalog{margin-bottom:10pxpadding-left:10pxheight:27pxline-height:27pxbackground-color:#F2F2F2font-size:14px}
#m_friend div.user{margin-top:4pxcolor:#333333font-size:12px}
#m_friend div.user a{color:#3399CCfont-size:12px}
#m_friend div.user a:visited{color:#3399CC}
#m_friend div.line{margin-top:10pxline-height:16pxborder-top:1px solid #D2E9F4}
#m_setting a{color:#3399CC}
#m_setting a:visited{color:#3399CC}
#m_setting{line-height:22pxcolor:#333333font-size:14px}
#m_setting img.sel{border:4px solid #FFDB7B}
#m_setting img.unsel{border:1px solid #D2D2D2}
#m_setting span.tit{font-size:14px}
#m_setting span.usr{color:#666666}
#m_setting div.sel{padding-top:6pxfont-size:14pxfont-weight:bold}
#m_setting div.line{margin-top:20pxline-height:16pxborder-top:1px solid #D2E9F4}
#m_sysinfo a{color:#3399CC}
#m_sysinfo a:visited{color:#3399CC}
#m_sysinfo{line-height:22pxcolor:#333333font-size:14px}
#m_sysinfo span.new{color:#FF0000font-size:10pxfont-family:Arial}
#m_sysinfo span.date{color:#666666font-size:14px}
#m_setbase{color:#333333font-size:14px}
#m_setbase td{color:#333333font-size:14px}
#m_setbase div.line{margin-top:5pxline-height:8pxborder-top:1px solid #D2E9F4}
#in_comment{width:710px}
#in_comment div.tit{margin-bottom:12pxcolor:#333333font-size:14pxfont-weight:bold}
#in_comment div.user{margin-bottom:6pxcolor:#333333font-size:12px}
#in_comment div.user a{color:#3399CCfont-size:12px}
#in_comment div.user a:visited{color:#3399CC}
#in_comment div.user span.date{color:#666666font-size:12px}
#in_comment div.desc{color:#333333font-size:12px}
#in_comment div.line{margin-top:17pxline-height:17pxborder-top:1px solid #D2E9F4}
#m_track {color:#333333font-size:12px}
#m_track a{color:#3399CCfont-size:12px}
#m_track a:visited{color:#3399CC}
#in_send div.tit{margin:10px 0 10px 0color:#333333font-size:14pxfont-weight:bold}