[英]:root imported CSS not working in safari and IE 11
:root
Selector在某些瀏覽器中不起作用。
碼:
:root { --blue: #4d6fd3; --yellow: #d8c812; } h1{ color: var(--blue); } h2{ color: var(--yellow); }
<h1>This is a heading with blue color</h1> <h2>This is a heading with yellow color</h2>
這些導入的CSS不適用於Safari 5.1.7和IE11 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.