Html5+bootstrap Study notes 2

Source: Internet
Author: User

NavBar upgrade from Bootstrap 2 to bootstrap 3

1.. Navbar-inner has been removed from Bootstrap 3.

2. <ul class= "NAV" > Strain is <ul class= "Nav navbar-nav" >.

References :

CSS display:table Attribute Usage parsing http://developer.51cto.com/art/201009/226678.htm

Twitter Bootstrap 3-navbar Not horizontal http://stackoverflow.com/questions/18191177/ Twitter-bootstrap-3-navbar-not-horizontal

Bootstrap NavBar http://getbootstrap.com/components/#navbar

Viewport

The mobile browser is to put the page in a virtual "window" (viewport), usually this virtual "window" (viewport) wider than the screen, so that you do not have to squeeze each page into a very small window (this will destroy the layout of the page without the optimization of the mobile browser), Users can view different parts of a Web page by panning and zooming. The mobile version of Safari has recently introduced the viewport META tag, which allows web developers to control the size and scale of viewport, as well as the basic support of other mobile browsers.

A common viewport meta tag for pages optimized for mobile pages is as follows:

1 <  name content initial-scale maximum-scale =1″ >

Width: Controls the size of the viewport, you can specify a value if 600, or a special value, such as device-width for the width of the device (in pixels of the CSS when scaled to 100%).
Height: corresponds to width, specifying height.
Initial-scale: The initial zoom ratio, which is the scale at which the page is first load.
Maximum-scale: Allows the user to zoom to the maximum scale.
Minimum-scale: The minimum scale to which the user is allowed to zoom.
User-scalable: Whether the user can manually scale

References :

HTML Meta Viewport Property Description http://www.cnblogs.com/pigtail/archive/2013/03/15/2961631.html

In-depth understanding of mobile front-end development viewport http://www.cnblogs.com/2050/p/3877280.html

Understanding Viewport and Device-width Http://www.xiaocaoge.com/understanding-viewport-and-device-width.html?utm_source=tuicool

Twitter bootstrap:responsive CSS does not work on mobile devices (fix Bootstrap Mobile can't respond to problems) http://julienrenaux.fr/2013/03/ 01/twitter-bootstrap-responsive-does-not-work-on-mobile-devices/

Html5+bootstrap Study notes 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.