我有一个CSS问题;transform-origin在firefox中无效。该网站在chrome和safari上居中,但在firefox上不居中。
html {
transform: scale(0.9);
transform-origin: center top;
}
我的网站是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);
}
}