CSS element element 选择器

定义和用法

The element 选择器选择指定元素名称的所有元素。


Browser Support

所有主流浏览器都支持element 选择器。

实例

选择<div>元素内的所有<p>元素:

div p
{
background-color:yellow;
}