1

我需要将可折叠的列表视图放入响应式网格中,但我需要将可折叠的列表视图设置为 inset=false,因此它需要 iphone 尺寸的整个宽度。

但是插入功能似乎与网格不兼容...

这是我的非工作测试:

  <!-- Home -->
<div data-role="page" id="page1">
    <div data-role="content">
<div class="ui-grid-a ui-responsive">
            <div class="ui-block-a">
                            <div data-role="collapsible-set" data-theme="b" data-content-theme="d" data-inset="false" id="custom-collapsible">
                <div data-role="collapsible">
                    <h2>
                        Préconisations
                        <span class="ui-li-count preco-count">0</span>
                    </h2>
                <ul data-role="listview" data-divider-theme="b" data-inset="false" id="custom-listview">
                    <li data-role="list-divider" role="heading">
                        Divider
                    </li>
                    <li data-theme="c">
                        <a href="#" data-transition="slide">
                            Button
                        </a>
                    </li>
                    <li data-theme="c">
                        <a href="#" data-transition="slide">
                            Button
                        </a>
                    </li>
                    <li data-theme="c">
                        <a href="#" data-transition="slide">
                            Button
                        </a>
                    </li>                    
                </ul>
                                </div>
                </div>
            </div>
            <div class="ui-block-b">
                other content, which apear at tje left of the grid on large screens, and at the bottom on small screens
            </div>
        </div>
    </div>
</div>

http://jsfiddle.net/nmZhz/3/

谢谢

4

1 回答 1

2

工作示例:http: //jsfiddle.net/Gajotres/nmZhz/2/

HTML:

<!-- Home -->
<div data-role="page" id="page1">
    <div data-role="content">
        <div class="ui-grid-a ui-responsive">
            <div class="ui-block-a">
                <ul data-role="listview" data-divider-theme="b" data-inset="false" id="custom-listview">
                    <li data-role="list-divider" role="heading">
                        Divider
                    </li>
                    <li data-theme="c">
                        <a href="#" data-transition="slide">
                            Button
                        </a>
                    </li>
                    <li data-theme="c">
                        <a href="#" data-transition="slide">
                            Button
                        </a>
                    </li>
                    <li data-theme="c">
                        <a href="#" data-transition="slide">
                            Button
                        </a>
                    </li>                    
                </ul>
            </div>
            <div class="ui-block-b">
                other content, which apear at tje left of the grid on large screens, and at the bottom on small screens
            </div>
        </div>
    </div>
</div>

CSS:

#custom-listview {
    margin: 0 !important;
}
于 2013-04-16T16:01:12.853 回答