3

一旦我添加了一个表单标签,我就会在表单元素周围得到这个讨厌的填充。有没有办法解决?

截图:https ://s3.amazonaws.com/thom-temp/jquerymobile-wtf.png

<div id="advancedSearch" data-role="panel" data-position="right" data-display="push">
  <div data-role="header">
    <h1>Search</h1>
    <a id="searchButton" href="#" class="ui-btn-right" data-role="button" data-theme="d" data-icon="search">Go</a>
  </div>

  <div data-role="content">
    <form style="margin: 0px; padding: 0px;" id="yw2" action="/mshi/index-test.php/inspection/list" method="get">
      <ul data-role="listview" data-inset="false" data-theme="a">

        <li data-role="fieldcontain">
          <input placeholder="Id" name="inspection[id]" id="inspection_id" type="text" />
        </li>
      </ul>
    </form>
  </div>
</div>
4

2 回答 2

9

覆盖.ui-panel-innerpadding

.ui-panel-inner { 
  padding: 0 !important;
}

演示

于 2013-07-12T00:02:44.370 回答
1

添加margin: 0px; padding: 0px;你的“标题”和“内容”div

于 2013-07-11T02:51:59.967 回答