1. 首页
  2. 区块链
  3. Dapp
  4. 浅析CSS :is() 和 :where() 即将出现在浏览器中

浅析CSS :is() 和 :where() 即将出现在浏览器中

上传者: 2020-11-22 00:27:00上传 PDF文件 47.08KB 热度 10次
现在,Safari(技术预览版106)和Firefox(版本78)的预览版均支持新的CSS :is() 和 :where() 伪类。Chrome的实施仍然落后。 使用 :is() 减少重复 你可以使用 :is() 伪类来删除选择器列表中的重复项。 /* before */ .embed .save-button:hover, .attachment .save-button:hover { opacity: 1; } /* after */ :is(.embed, .attachment) .save-button:hover { opacity: 1; } 此功能主要在未处理的标准
下载地址
用户评论