xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>W3Cschool教程(w3cschool.cn)</title>
<style>
html {
font-size: small;
color: blue;
}
#ex1 {
background-color: yellow;
color: red;
}
#ex2 {
background-color: yellow;
color: red;
all: inherit;
}
#ex3 {
background-color: yellow;
color: red;
all: initial;
}
#ex4 {
background-color: yellow;
color: red;
all: unset;
}
</style>
</head>
<body>
<p>没有 all 属性:</p>
<div id="ex1">W3Cschool教程 -- 学的不仅是技术,更是梦想!!!</div>
<p>all: inherit:</p>
<div id="ex2">W3Cschool教程 -- 学的不仅是技术,更是梦想!!!</div>
<p>all: initial:</p>
<div id="ex3">W3Cschool教程 -- 学的不仅是技术,更是梦想!!!</div>
<p>all: unset:</p>
<div id="ex4">W3Cschool教程 -- 学的不仅是技术,更是梦想!!!</div>
<p><b>注意:</b> Internet Explorer 和 Safari 浏览器不支持 all 属性。</p>
</body>
</html>