开发者

How do I make a JQuery Mobile header wrap, and left-justified?

The text in my JQuery Mobile headers is often too long to fit on an iPhone scr开发者_如何转开发een, which means that the text is truncated, and a button on the right of the header overlaps the text.

Is there any way that I can:

  • Make the text wrap instead of run off the right of the screen
  • Make the text smaller


It looks like the style that handles the ellipsis and wrapping is this:

.ui-header .ui-title, .ui-footer .ui-title {
    text-overflow: ellipsis;
    white-space: nowrap;
}

Try overriding that in your own style:

.ui-header .ui-title, .ui-footer .ui-title {
    text-overflow: clip;
    white-space: normal;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜