- 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里讲的很明白