-webkit-text-fill-color: transparent; not working in Safari 7.1.7

后端 未结 5 1577
醉酒成梦
醉酒成梦 2021-01-19 03:13

I have an ul with several li.

I use this id on the ul.

#list {
margin-right: auto;
margin-left: auto;
width:500px;
color:black;
background: -webkit-l         


        
5条回答
  •  旧巷少年郎
    2021-01-19 03:30

    To someone coming to this, just drop -webkit-text-fill-color: transparent; as it's not a standard and is not on a standard track.

    Use instead color: transparent and wrap everything in an @supports to prevent color transparent from being used in case background-clip: text is not supported.

    Here's an example: https://jsfiddle.net/0oeftdbk/5/

    ––

    As per the

提交回复
热议问题