菜单切换
htmlbook实例代码
htmlbook在线教程
htmlbook站长工具
赞赏工具
源代码
(
显示异常
)
:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>htmlbook实例代码(htmlbook.com.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">htmlbook在线 -- 学的不仅是技术,更是梦想!!!</div> <p>all: inherit:</p> <div id="ex2">htmlbook在线 -- 学的不仅是技术,更是梦想!!!</div> <p>all: initial:</p> <div id="ex3">htmlbook在线 -- 学的不仅是技术,更是梦想!!!</div> <p>all: unset:</p> <div id="ex4">htmlbook在线 -- 学的不仅是技术,更是梦想!!!</div> <p><b>注意:</b> Internet Explorer 和 Safari 浏览器不支持 all 属性。</p> </body> </html>
运行结果