.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里讲的很明白
第一个是 page_leftbox 里面的样式设置
第二个是 page_leftbox 里面 li 标签的样式设置
LZ也是柯迷???
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号