Override Jquery Mobile CSS

后端 未结 4 2192
慢半拍i
慢半拍i 2020-12-06 12:32

Is it possible to override the already styled JQuery Mobile elements (buttons, lists etc) with a separate custom css file?

If so how would I go about referencing the

4条回答
  •  攒了一身酷
    2020-12-06 12:49

    I don't know of an official, elegant way to do it, but I look in non-min css file to find classes, then add things like this to a .css file included after the jquery mobile one:

    .ui-header .ui-title {margin-right:20px;margin-left:20px;}

    .ui-footer .ui-title {margin-right:20px;margin-left:20px;white-space:normal;}

    Also, firebug and dev. tools (chrome) are your friend - examine elements and their styles.

    Libby

提交回复
热议问题