亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

HTML+CSS Easy to Get Started with Selectors

What is the inclusion selector

The inclusion selector, that is, adding spaces, is used to select descendant elements under the specified label element

Syntax:

body div{

Style

}

Example:

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>包含選擇器</title>
	<style type="text/css">
			body div li{
				color:red;
			}
	</style>
</head>
<body>
		<div>中華民族偉大復興!
			<ul>
				<li>中國</li>
				<li>中國</li>
			</ul>
		</div>

		<p>你知道我的夢,知道我的痛,知道我們感受都相同</p>

		<span>最美的太陽
		        <p>強軍夢</p>
		</span>

		<h3>中國夢</h3>
</body>
</html>

If I want to set the font of "Strong Army Dream" to size 20 , the color is blue, what should be done

Add the following code to the css:

body span p{

font-size:20px;

color:blue;

}

Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>包含選擇器</title> <style type="text/css"> body div li{ color:red; } </style> </head> <body> <div>中華民族偉大復興! <ul> <li>中國</li> <li>中國</li> </ul> </div> <p>你知道我的夢,知道我的痛,知道我們感受都相同</p> <span>最美的太陽</span> <h3>中國夢</h3> </body> </html>
submitReset Code