小编Lov*_*ign的帖子

CSS转换起源不适用于firefox

我有一个CSS问题; transform-origin在firefox中不起作用.该网站以chrome和safari为中心,但不在firefox上.

html {
transform: scale(0.9);
transform-origin: center top;
}
Run Code Online (Sandbox Code Playgroud)

我的网站是http://test.lafsdesign.com/

如果你能帮助我解决这个问题,我将不胜感激.非常感谢你提前.

完整的CSS

@media screen and (max-width: 1240px) {
html {
zoom: 0.9;
-moz-transform: scale(0.9);
-moz-transform-origin: center top;
}
}
@media screen and (max-width: 1140px) {
html {
zoom: 0.8;
-moz-transform: scale(0.8);
}    
}
@media screen and (max-width: 1005px) {
html {
zoom: 0.7; 
-moz-transform: scale(0.7);
}
}
@media screen and (max-width: 880px) {
html {
zoom: 0.6; 
-moz-transform: scale(0.6);
}
}
Run Code Online (Sandbox Code Playgroud)

html css firefox transform scale

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

css ×1

firefox ×1

html ×1

scale ×1

transform ×1