当前位置:Gxlcms > html代码 > 新手,求帮助_html/css_WEB-ITnose

新手,求帮助_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:4人阅读

.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也是柯迷???

人气教程排行