编辑下面的代码:【加编码】
<html> <head> <style> div {color: red; } h1 {color: initial; } </style> </head> <body> <div> <h1>Initial</h1> <p>DIV 元素内的标题和文本的 color 属性被设置为 "red"。标题元素的 color 属性被另外设置为 "initial",因此是 "black"。</p> </div> <p><b>注意:</b>Internet Explorer 或 Opera 15 及其之前的版本不支持 initial 关键字作为一个属性值。</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂