CSS element 选择器
选择所有<p> 元素 :
<!DOCTYPE html>
<html>
<head>
<style>
p {
background-color: yellow;
}
</style>
</head>
<body>
<h1>Welcome to My Homepage</h1>
<div>
<p id="firstname">My name is Donald.</p>
<p id="hometown">I live in Duckburg.</p>
</div>
<p>My best friend is Mickey.</p>
</body>
</html>
定义和用法
The element 选择器选择指定元素名称的所有元素。
Browser Support
所有主流浏览器都支持element 选择器。
