Anyone familiar with mobile visibility and zurbs foundation

空扰寡人 提交于 2019-12-01 12:15:57

You really need to check out this then.

http://www.w3schools.com/css/css_mediatypes.asp

You can define different types of Style Sheets for Different Types of Devices your Website is being viewed on.

Hope that helps! Aaron

Take a look at version 3 of Foundation: http://foundation.zurb.com/docs/media-queries.php & example in: http://foundation.zurb.com/mobile-example3.php

Use .show-for-small

If you need it for smaller device than 767px, roll your own mediaquery.

Cheers

.touch gets added by Modernizr to the body element - you don't need to do anything for that. It's so we can tell, when a device is 1280x768 for example, if it's a desktop or tablet.

The trick to the .hide-on-x and .show-on-x classes is that you only ever need one. There is an implied 'only' in there, as in 'hide-only-on-tablets'. That should be the only one you need.

(Source: https://groups.google.com/forum/?fromgroups=#!topic/foundation-framework-/Whs4dZaS31U)

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