虽然IE和Chrome可以正常运行,但是Firefox并没有运行“box-sizing:border-box”?这是什么解决方案?Firefox不会运行“box-sizing:border-box”?
0
A
回答
2
Firefox supports box-sizing
through the -moz
prefix
-moz-box-sizing: border-box;
你也可以写为:
-moz-box-sizing: border-box;
/* only needed to support very old browsers */
-webkit-box-sizing: border-box;
box-sizing: border-box;
这将会给非专有box-sizing
优先Firefox何时实现它。目前,Firefox是唯一支持padding-box
的浏览器。
+0
感谢您的帮助。 –
1
使用厂商前缀:-moz-box-sizing: border-box;
更好的方式使用这样
-moz-box-sizing: border-box; // for older browser
-webkit-box-sizing: border-box; // for older browser
box-sizing: border-box;
相关问题
- 1. navigator.geolocation.getCurrentPosition回调不会在Firefox 10上运行
- 2. 将Firefox渲染为Firefox,而不运行Firefox
- 3. Javascript不会运行
- 4. MYSQL不会运行
- 5. 也不会运行
- 6. Vagrant不会运行
- 7. JavaScript不会运行
- 8. Biopython不会运行
- 9. 亚行将不会运行
- 10. 运行firefox addons命令行
- 11. PHP会话不会在Firefox
- 12. 不能在safari上运行neo4j,firefox
- 13. 为什么JavaScript不在Firefox中运行?
- 14. 从不同位置多次运行Firefox
- 15. Firefox不能运行并且空白
- 16. window.opener.dispatchEvent不会在Firefox
- 17. 块不会在Firefox
- 18. Firefox不会对event.target.id
- 19. element.select()不会在Firefox
- 20. .rows.length,不会在Firefox
- 21. 控件不在FireFox中运行,但在Chrome中运行
- 22. js不是在Chrome上运行,而是在Firefox上运行
- 23. Javascript不会正常运行
- 24. 不会运行的Dockerfile
- 25. GoDaddy不会让XmlUrlResolver运行
- 26. Android SDK:Hello World不会运行!
- 27. Maven不会运行测试
- 28. AJAX搜索不会运行
- 29. Ruby TkButton不会运行proc
- 30. JBoss不会保持运行
*旁注:*在Mozilla开发人员网络(MDN),其提供了精确的规格和CSS的兼容性读CSS参考。 – Raptor