我在我的應用程序中使用jQuery移動1.4.2。文本區域滾動條存在問題,即滾動條可見。我們如何啓用滾動條視圖。我需要與以下鏈接中的滾動條相似的文本區域。問題與文本區域滾動條?
http://www.askthecssguy.com/examples/scrollingbox/
我的代碼如下,
HTML:
<div data-role="page" id="privacy_details">
<div data-theme="a" data-role="header">
<h3>
Privacy Policy
</h3>
</div>
<div data-role="content">
<div data-role="fieldcontain">
<textarea class="txtarea" style="resize: none;">
data
data
data
data
data
data
data
data
data
data
data
data
data
data
</textarea>
<a href="#" data-rel="back" data-role="button" data-theme="c" target="_blank">OK</a>
</div>
</div>
</div>
CSS:
.txtarea { height:300px; max-height: 300px; }
我的屏幕截圖如下,
保持高度100並檢查 – zzlalani
我試着用高度100px。它不起作用 – Vinod
在你的風格中應用'!important'後高度爲 – zzlalani