JQuery Mobile: create a folded element 100% wide / NOT insert

Is there a way to make a collapsible element / set in jQuery Mobile not an insertion? By default, it makes a folding element as an insertion element.

data-inset="false" does not change behavior.

+5
source share
2 answers

If you set properties margin-leftand margin-righta negative value, you can deploy the content roll-page width.

The default values ​​are margin-topalso margin-bottomfor dumped elements 8px, so we can write a CSS rule for this:

.ui-collapsible {
    margin : 8px -15px;
}

-15px, padding, data-role="content" .

jsfiddle, , : http://jsfiddle.net/jasper/zSvqU/

+8

data-role="header", , , , - .

0

All Articles