2013-06-25 36 views
0

我有簡單的標籤以圓形框jQuery Mobile的顯示文本,但是當我設置爲H標籤的文本屬性jQuery中的文本被截斷,以免jQuery Mobile從截斷文本

<div data-role="page" id="question" data-position="fixed" > 
<div data-role="content"> 
<div class="ui-bar-c ui-corner-all ui-shadow" style="padding:1em;"> 
    <h4 id="quest"></h4> 
    </div> 
</div> 
</div> 
//clearing the question box 
$("#quest").empty(); 

$("#quest").append(questions[0].quest) 

我如何防止這種行爲?

+0

http://stackoverflow.com/questions/15729146/how-to-stop-jquerymobile-from-truncating-text-in-label/15729272#15729272 this? – Omar

+0

一個按鈕類的nope dat,我的圓形框的類是類似於ui-bar-c ui-corner-all ui-shadow – kolexinfos

+0

我看不到任何截斷http://jsfiddle.net/Palestinian/AKb8r/ – Omar

回答

1

有一個屬性,CSS:

.class{ 
text-overflow:ellipsis; 
} 

ovveride它改變了風格。