开发者

JQueryMobile Listview Header Text Abbreviation

开发者 https://www.devze.com 2023-04-10 21:25 出处:网络
How to change the abbreviation setting of a listview header entry? Lets say my window is big enough, the list开发者_运维问答 entry is fully written like it should be. If the window is smaller, the t

How to change the abbreviation setting of a listview header entry?

Lets say my window is big enough, the list开发者_运维问答 entry is fully written like it should be. If the window is smaller, the text is abbreviated with '...' -> how could I influence the way when and how this is done?

Thanks


Overwrite the Jquery mobile css:

EDIT: I'm sorry, I think you need this one if you want to change the overflow property of a list: .ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; } .ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

The text-overflow and overflow properties are the ones you need. (text-overflow: ellipsis doesn't work in firefox and old IE though)

0

精彩评论

暂无评论...
验证码 换一张
取 消