jQueryMobile default font-size too big, can I downsize for Computer-screen?

天大地大妈咪最大 提交于 2019-12-22 12:27:10

问题


@Phill Pafford gave the solution for my oposite problem: jquery mobile default font size using the meta viewport solution. But, this is great for up-sizing the viewport to adapt to a phone screen.

I'm implementing jQM framework only to give a mobile look-n-fell on a "regular" Web-based App that runs on computer screens. And the font looks very big on them! How can I globally down-size the font-size or adapt it (responsive design) to be more appealing (i.e. smaller) on a computer screen?

Thanks!


回答1:


In your custom stylesheet, not the JQM stylesheet, group your styles with media queries:

/* Large desktop */
@media (min-width: 1200px) { font-size: 12px; }

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) { ... }

/* Landscape phone to portrait tablet */
@media (max-width: 767px) { ... }

/* Landscape phones and down */
@media (max-width: 480px) { ... }


来源:https://stackoverflow.com/questions/12325517/jquerymobile-default-font-size-too-big-can-i-downsize-for-computer-screen

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