当前位置: 代码迷 >> HTML/CSS >> 生手,求帮助
  详细解决方案

生手,求帮助

热度:123   发布时间:2012-08-29 08:40:14.0
新手,求帮助
CSS code
.page_leftbox{
    background-color: #f7f7f7;
    background-image: url(images/page_box.gif);
    background-repeat: repeat-x;
    background-position: bottom;
    width: 236px;
    height: 217px;
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}
.page_leftbox li{
    line-height: 23px;
    margin: 10px;
    text-align: center;
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    border-bottom-color: #1d7cb6;
    list-style-type: none;
    color: #a60000;
}
这两个是不是有什么联系

------解决方案--------------------
page_leftbox这是父,page_leftbox li 这是子,子继承父的
------解决方案--------------------
http://www.w3school.com.cn/css/css_syntax_class_selector.asp里讲的很明白
  相关解决方案