如下我定义ub 和ub-her样式,为了实现几个模块可横轴排列,但是除了谷歌、ie10可以正常显示,ie9及以下浏览器、火狐都无法兼容,求解!!
.ub
{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -o-box;
display: box;
behavior: url(ie-css3.htc);
}
.ub-her
{
-webkit-box-orient: horizontal; /* safari、opera 以及 chrome */
-moz-box-orient: horizontal; /* firefox */
box-orient: horizontal; /* w3c horizontal*/
-ms-flex-direction: row;
-o-box-orient: horizontal;
behavior: url(ie-css3.htc);
}
.ub-her{-webkit-box-flex:1; -moz-box-flex:1; -ms-flex:1; -o-box-flex:1; box-flex:1; flex:1;}
子元素直接这么写,火狐是可以的。
但ie9及以下不行,楼主解决了ie9-的问题了么
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号