Con*_*sea 1 html css stylus ios responsive-design
我在我的网站上使用Jade,Stylus和Node JS.它在桌面Chrome,Firefox,IE和Edge上运行良好.它在Android Chrome和浏览器上运行良好.它在iOS Chrome或Safari上无法正常运行,两者都显示类似的失败.它也不适用于桌面上的Safari.它似乎适用于iOS9但不适用于iOS8或更低版本.
这是一个屏幕截图,显示Android上的移动Chrome和iOS上的移动Chrome之间的区别.http://imgur.com/a/kjU23
即使我明确地使用-webkit-,并且nib在编译的CSS中生成-webkit-前缀,为什么它不适用于移动iOS浏览器?这是我在Github上的完整CSS.https://github.com/Connorelsea/LSMSA-SGO-Website/tree/master/public/css
用于测试和演示的实时网站位于:http://www.lsmsaSGO.com
该网站的完整Stylus代码长达几千行,但一个例子如下.我的手写笔代码:
.addMore
text-align center
.multButtons
width 100%
display -webkit-flex
display flex
justify-content center
-webkit-justify-content center
align-items center
-webkit-align-items center
flex-direction column
-webkit-flex-direction column
Run Code Online (Sandbox Code Playgroud)
使用Stylus和Nib编译的CSS.
.addMore {
text-align: center;
}
.addMore .multButtons {
width: 100%;
display: -webkit-flex;
display: -webkit-box;
display: -moz-box;
display: -webkit-flex;
display: -ms-flexbox;
display: box;
display: flex;
-webkit-box-pack: center;
-moz-box-pack: center;
-o-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-justify-content: center;
-webkit-box-align: center;
-moz-box-align: center;
-o-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-align-items: center;
-webkit-box-orient: vertical;
-moz-box-orient: vertical;
-o-box-orient: vertical;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-flex-direction: column;
}
Run Code Online (Sandbox Code Playgroud)
关闭flex它.issueContainer似乎解决了我的问题.
.issueContainer {
/* display: -webkit-flex; */
/* display: flex; */
/* flex-direction: row; */
/* align-items: center; */
}
Run Code Online (Sandbox Code Playgroud)
.issueContainer 不需要flexbox来使它成为子堆栈,因为这是默认行为.
| 归档时间: |
|
| 查看次数: |
8907 次 |
| 最近记录: |