Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery Mobile:制作100%宽度/非插入的可折叠元素_Jquery_Css_Jquery Mobile_Collapsable - Fatal编程技术网

jQuery Mobile:制作100%宽度/非插入的可折叠元素

jQuery Mobile:制作100%宽度/非插入的可折叠元素,jquery,css,jquery-mobile,collapsable,Jquery,Css,Jquery Mobile,Collapsable,有没有办法使jQuery Mobile中的可折叠元素/集合不插入?默认情况下,它使可折叠元素成为插入项 data inset=“false”不会改变行为。如果为左边距和右边距属性设置负值,则可以将可折叠内容扩展到页面宽度 可折叠文件的默认margin top和margin bottom值为8px,因此我们可以为此编写CSS规则: .ui-collapsible { margin : 8px -15px; } 我选择了-15px,因为这是data role=“content”元素添加到每

有没有办法使jQuery Mobile中的可折叠元素/集合不插入?默认情况下,它使可折叠元素成为插入项


data inset=“false”
不会改变行为。

如果为
左边距
右边距
属性设置负值,则可以将可折叠内容扩展到页面宽度

可折叠文件的默认
margin top
margin bottom
值为
8px
,因此我们可以为此编写CSS规则:

.ui-collapsible {
    margin : 8px -15px;
}
我选择了
-15px
,因为这是
data role=“content”
元素添加到每个页面的
填充量的负数


这是一个jsFoDelphi来查看它是做什么的:

你可以把可折叠的内容块放在<代码>数据角色=“页眉”< /C>中,但是当然,如果你的可折叠内容不需要在页面中间的某个地方,这是可以的。

期望的行为是什么?如果是关于风格,你可以重新设计风格