Jquery mobile jQuery Mobile inset列表未按预期添加边距

Jquery mobile jQuery Mobile inset列表未按预期添加边距,jquery-mobile,Jquery Mobile,我在firefox、chrome和mobile safari上试用过。当我向列表中添加data inset=“true”时,它将正确地环绕列表的各个角落,但它不会像应该的那样在任意一侧添加1em边距。我想不出来。它甚至在一个简单的样板页面上完成,除了列表之外,没有其他内容。例如: <!DOCTYPE html> <html> <head> <title>Page Title</title> <link re

我在firefox、chrome和mobile safari上试用过。当我向列表中添加data inset=“true”时,它将正确地环绕列表的各个角落,但它不会像应该的那样在任意一侧添加1em边距。我想不出来。它甚至在一个简单的样板页面上完成,除了列表之外,没有其他内容。例如:

<!DOCTYPE html> 
<html> 
<head> 
    <title>Page Title</title> 
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
</head>

<body>
    <ul data-role="listview" data-theme="c" data-inset="true">
        <li><a href="#">first</a></li>
        <li><a href="#">second</a></li>
    </ul>
</body>
</html>

页面标题

显示不正确。谢谢你的帮助。

好的,我知道了。为了实现这一点,我只需使用data role=“content”将正文内容包装成一个
。现在可以了。

好的,我想起来了。为了实现这一点,我只需使用data role=“content”将正文内容包装在一个文件中。现在工作正常。请回答和/或关闭您自己的问题,谢谢。我想删除左右两侧的空白。如何操作?