使用引导程序在IE Mobile上出现折叠错误

时间:2014-07-29 14:44:30

标签: css twitter-bootstrap windows-mobile collapse

如您所知,我们可以使用bootstrap引入的这种语法,在单击按钮时折叠div。

<button type="button" data-toggle="collapse" data-target="#myid">
  <ul id="myid" class='collapse'>

但是,实际上它与Bootstrap版本3.2.0和Windows Mobile(IE11正确模拟)不起作用(它保持打开状态)

我该如何解决?

1 个答案:

答案 0 :(得分:0)

足以添加这两行代码:

.collapse.in {
    display: block;
}

.collapse {
    display: none;
}