本文介紹了HTML 列表框換行文本的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我有代碼
<select name="d" ><option value="sdf" class="test1">How to wrap the big line text How to wrap the big line text How to wrap the big line text How to wrap the big line text How to wrap the big line text How to wrap the big line text text How to wrap the big line text How to wrap the big line text </option></select>
我需要在列表框內(nèi)換行.我們?cè)撛趺醋??我在 CSS Wrap 文本中嘗試過 .. 它不起作用.
I need to wrap text inside the listbox. How we can do it ?? I tried in CSS Wrap text .. its not working.
請(qǐng)幫幫我
問候迪彭
推薦答案
你不能用自動(dòng)換行 - 你可能想看看這個(gè) 選擇列表中的自動(dòng)換行選項(xiàng)
You cannot do it with word-wrap - you might want to see this Word wrap options in a select list
此外,您可以使用無序列表模擬整個(gè)下拉列表.
Also, you could simulate the entire drop-down using an unordered list.
這篇關(guān)于HTML 列表框換行文本的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!