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

送分小仙女□ 提交于 2020-01-02 05:45:08

问题


The text in my JQuery Mobile headers is often too long to fit on an iPhone screen, 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

回答1:


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;
}


来源:https://stackoverflow.com/questions/7003067/how-do-i-make-a-jquery-mobile-header-wrap-and-left-justified

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!