开发者

Less Framework > Does CSS load in everything first and then select?

When using the less framework, does CSS only load what is relevant to the device or does it load the entire CSS and then pick what's needed?

I want to use a nice background for the Desktop version, but 开发者_高级运维for iPhones, iPads etc, I want a stripped down version to show up.

Thanks, Frank


Less generates a CSS file which is then picked by your HTML file. There is no other rocket science involved.

If you want to have different variations of your website for different devices you need to detect the device first and then use desired stylesheet (which could be a different CSS file).

Google is your friend: http://iphone.wikidot.com/detection

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜