Home  >  Article  >  Web Front-end  >  css初始化问题_html/css_WEB-ITnose

css初始化问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:51:581233browse

 
#main{
width:1024px;
height:900px;  
background:#000000;
 }
#top{
background: url(image/bground1.jpg);
}
#lside{
width:700px;
height:700px;
float:left;
background:#fff000;
}
#rside{
width:300px;
height:700px;
float:right;
background:#ccccdd;
}






css初始化问题_html/css_WEB-ITnose















如果没有css初始化的话,#main就工作,加上之后就不工作了,这是为什么呢?



下面是初始化的代码:
@CHARSET "UTF-8";
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.5tahoma, arial, \5b8b\4f53; }
h1, h2, h3, h4, h5, h6{ font-size:100%; }
address, cite, dfn, em, var { font-style:normal; }
code, kbd, pre, samp { font-family:couriernew, 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; }


回复讨论(解决方案)

不可能的,两个互不影响.
请检查taobao.css 引用路径.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn