English 中文(简体)
JQuery 移动、布设陷阱和 CSS3 媒体查询,选择的组合
原标题:JQuery Mobile, Bootstrap and CSS3 Media Queries, what combination to choose

JQuery 移动、布设和 CSS3 媒体查询

要使用的组合

To have an UI Framework we all should use something like Bootstrap. To develop for Mobile I need something which makes it easy to switch pages within one HTML file, like JQuery Mobile (JQM) does. To develop for different screen-widths (iPhone, iPad, etc) I need to develop according to Responsive Webdesign rules.

JQM 不支持根据 提供的媒体查询,因为其中提到帮助者课程被贬低。 它指向媒体查询,其中没有好的例子,除非使用布茨陷阱或斯克莱顿。

当寻找将诱杀装置与JQM相结合的信息时,除了Andy Matthews在JQM中创建了一个诱杀装置主题之外,没有其他好的例子。http://www.andymatthews.net/read/2012/02/13/New-jQuery-Mobile-text:-Twitter-Bootsstrap

So, what is common practice in developing WebApps with a responsive webdesign? Are people ignoring JQM (and doing the page-in-html stuff themselves) or are they ignoring Bootstrap (and doing the responsive webdesign by hand with media queries in JQM) ?

或者,是否有一个涵盖所有东西的全面解决方案来开发 de WebApp? (请不要说PeetGap)

为了补充一些关于我寻求澄清的信息:我在索引.html页眉中有以下几行:

<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>

Bit much according to my opinion? Or is this correct? Hope anybody of the more experienced WebApp developers can shed any light on this.

谢谢

最佳回答

当然,你可能会得到推拉普和JQM Css很好地一起玩。你拥有它的方式应该很好地发挥作用,除了被覆盖的一两个班或两个班之外。如果你选择了这条路线,请务必要定制一个只包括你想要使用的靴子的一部分的靴子陷阱。尽可能多地消除顶部。

然而,使用 css3 媒体查询并不难。 使用快速崩溃课程进行媒体查询将节省您的用户带宽,并确保您的网站尽快加载。

以下是一些使用 cs3 媒体查询的伟大例子和辅导:

http://css-tricks.com/css-media-queries/

http://deignshack.net/articles/cs/20-amazing-examples-using-media-queries-for- respective-web-design

http://webdesignerwall.com/tutors/css3-media-queries" rel=“nofollow'>http://webdeignerwarl.com/tutors/cs3-media-queries

http://zomigi.com/blog/imical- considerations-for-crafting-quality-media-queries/"rel="nofollow" >http://zomigi.com/blog/imical-consitutions-fracting-forcrafting-leginal-media-queries/

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签