iOS 9 removed the possibility to change certain symbol colors using CSS

前端 未结 2 893
逝去的感伤
逝去的感伤 2020-12-11 00:46

We\'ve been using various symbols such as checkmarks (✔) on our website and just noticed that with the release of iOS 9, Safari and other browsers have been updated to not r

2条回答
  •  鱼传尺愫
    2020-12-11 01:10

    If you are trying to style the element using CSS-after, this is how to do to make sure that the icon gets green in iOS. With only "✔" the iOS will not change the color of the icon.

    .myElement:after {
      color:green;
      content: "✔\fe0e";
    }
    

提交回复
热议问题