如何让CSS不完全控制整个页面样式?

来源:百度知道 编辑:UC知道 时间:2024/06/01 02:41:43
让下面的的CSS样式不要控制下面的,如何操作?谢谢各位!!

<style type="text/css" >
a
{
text-decoration:none;
}
a,a:visited
{
color:#000;
background:inherit;
}
body
{
margin:0;
padding:0px;
font:12px tahoma,宋体,sans-serif;
}
dt
{
font-size:22px;
font-weight:bold;
margin:0 0 0 15px;
}
dd
{
margin:0 0 0 15px;
}
h4
{
margin:0;
padding:0;
font-size:18px;
text-align:center;
}
p
{
margin:0;
padding:0 0 0 18px;
}
p a,p a:visited
{
color:#00f;
background:inherit;
}

.TreeMenu img.s
{
cursor:hand;
vertical-align:middle;
}
.TreeMenu ul
{
padding:0;
}
.TreeMenu li
{
list-style:none;
padding:0;
}
.Closed ul
{
display:none;
}
.Child img.s
{
background:none;

#CategoryTree ul
把样式中的所有# 替换成.
.CategoryTree ul

+++++++++++++++++
这样定义:
.Openeds
{
background:url(skin3/opened.gif) no-repeat 0 1px;
}
img.s
{
background:url(skin3/opened.gif) no-repeat 0 1px;
}
+++++++++++++++++++++
不聊Q好多年了。
你可以分步定义,定义的方法有很多。
如果你不懂CSS,我说再也,也等于白说。