开发者

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

开发者 https://www.devze.com 2023-03-03 16:05 出处:网络
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?

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

精彩评论

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

关注公众号