Livid
408.15D
539.08D
V2EX  ›  CSS

CSS aspect-ratio 的浏览器支持

  •  
  •   Livid ·
    PRO
    · Oct 27, 2021 · 2401 views
    This topic created in 1855 days ago, the information mentioned may be changed or developed.
    Safari 15 开始提供正式支持之后,现在主要浏览器的当前版本都可以支持 CSS aspect-ratio 了:

    https://caniuse.com/mdn-css_properties_aspect-ratio

    https://web.dev/aspect-ratio/
    1 replies  •  2021-10-27 10:28:33 +08:00
    h404bi
    h404bi
    Oct 27, 2021
    1
    前两天刚好换上。这个新属性太棒了,一个顶十个,可算不用“padding hack”了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2021 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 15:12 · PVG 23:12 · LAX 07:12 · JFK 10:12
    ♥ Do have faith in what you're doing.