Firebug kills -webkit Settings in CSS File - Why?

后端 未结 2 430
执笔经年
执笔经年 2021-01-23 09:05

style.css - Original File

.box { -webkit-border-radius:8px; -moz-border-radius:8px; padding:10px;  }

style.cs

2条回答
  •  离开以前
    2021-01-23 09:32

    I don't think you can - the correct behaviour for browsers is to ignore style rules they don't understand. Firefox sees -webkit-xxx and effectively removes it from the style set, so it can't ever be applied to .box.

    Safari's inspector will show the -webkit- rules but ignore the -moz- rules for the same reason.

提交回复
热议问题