Home >Web Front-end >HTML Tutorial >Newbie, please help_html/css_WEB-ITnose

Newbie, please help_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:241154browse

.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;}
Is there any connection between the two?


Reply to the discussion (solution)

page_leftbox This is the parent, page_leftbox li This is The child, the child inherits the parent's

http://www.w3school.com.cn/css/css_syntax_class_selector.asp explains it very clearly

The first one is the style setting in page_leftbox
The second one is the style setting of the li tag in page_leftbox

Is LZ also a fan of Ke? ? ?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn