dd

CSS element 选择器


实例

选择所有<p> 元素 :

p
{
background-color:yellow;
}
运行一下 »

定义和用法

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

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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