欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

解決JQeury顯示內(nèi)容沒有邊距內(nèi)容緊挨著瀏覽器邊線

 更新時間:2013年12月20日 14:49:56   作者:  
JQuery頁面顯示的內(nèi)容沒有邊距,內(nèi)容緊挨著瀏覽器邊線,下面有個不錯的解決方法,大家可以嘗試下
寫的JQuery頁面顯示的內(nèi)容沒有邊距,內(nèi)容緊挨著瀏覽器邊線,特別難看(如下圖)
 
代碼如下:
復(fù)制代碼 代碼如下:

<body>
<form id="form1" runat="server">
<div data-role="page" id="page">
<div data-role="header" data-theme="b">
<h2>新聞內(nèi)容</h2>
</div>

<div>
<div>
<asp:Image ID="newsImage" runat="server" AlternateText="新聞圖片" />
</div>
<div>
<asp:Label ID="lblDetail" runat="server" Text="Label"></asp:Label>
</div>
</div>

<div data-role="footer" data-theme="d">
<h4>餐飲咨詢</h4>
</div>
</div>
</form>
</body>

其實原因特別簡單,就是顯示的內(nèi)容沒有放在content里邊,所以在div里加一個data-role="content"就可以了,修改后的代碼如下:
復(fù)制代碼 代碼如下:

<body>
<form id="form1" runat="server">
<div data-role="page" id="page">
<div data-role="header" data-theme="b">
<h2>新聞內(nèi)容</h2>
</div>

<div>
<div>
<asp:Image ID="newsImage" runat="server" AlternateText="新聞圖片" />
</div>
<div>
<asp:Label ID="lblDetail" runat="server" Text="Label"></asp:Label>
</div>
</div>

<div data-role="footer" data-theme="d">
<h4>餐飲咨詢</h4>
</div>
</div>
</form>
</body>

相關(guān)文章

最新評論