css初始化问题_html/css_WEB-ITnose

  • A+
所属分类:html教程
摘要

css初始化问题

#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 引用路径.

除非注明,否则均为@蒲公英网原创文章,转载必须以链接形式标明本文链接

本文链接:https://www.aipgy.com/325928.html

avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: