Media queries is very powerful. It allows you to customize different resolutions and devices without changing the content, make the web page displayed properly under different resolutions and devices without losing the style.First, let's look at a simple example: The Code is as follows:
The preceding media statement indicates that when the page width is smaller
Web page Production WEBJX article introduction: Speaking of the new features of CSS3, we have to mention Media Queries. This article is more detailed, so many of the actual use is not. So if you simply want to learn about media Queries, refer to CSS3 media
Media query can be based on the characteristics of the device display (viewport width, screen size, device direction-horizontal or vertical, etc.) for its CSS style
Why response design requires media queries. Because there is no CSS3 media query module, you cannot set specific CSS styles for device features (especially
In the Web page, the picture is left, the content is in the right, is a very common effect, it is the media object, it is an abstract style, can be used to build different types of components, in the bootstrap framework of the corresponding version of the file is as follows:
LESS:media.less
SASS: _media.scss
Media objects typically appear in groups, and a grou
Media queries translation comes to the press query, media refers to the type of medium, then what kind of, often have screen (screens), printing (print), personal understanding is its different terminal.Common usage:1,Invokes the appropriate style, depending on the criteria that are met2. Use media features directly in
Web page Production WEBJX article introduction: CSS3 Media Queries: Perfect solution for Web and mobile cross-platform design.
Mobile era, is any WEB design and developers can not ignore an era, one day, the things you design will be displayed on two screens, the desktop big screen and the mobile small screen, how to get the same site to adapt to the two completely different sizes of the screen,
Deep understanding of CSS Media queries and deep understanding of css* Contents [1] media type [2] media attributes [3] syntax
When it comes to responsive design, media queries are indispensable. It is generally considered that
Start researching responsive web design, CSS3 Media queries is getting started.Media Queries, which allows you to apply different style sheets by allowing you to add expressions to determine the environment of your media. In other words, it allows us to change the layout of the page without changing the content to prec
Use Zepot to make a carousel diagramUse Zepot to import different events according to the events used js,[' swipe ', ' swipeleft ', ' swiperight ', ' swipeup ', ' Swipedown ',' Doubletap ', ' tap ', ' Singletap ', ' Longtap ' and other events]tap is a click event in ZepotMedia queries (Implementation of the response) can adjust different styles depending on the screen size media queriesNeed to have a contai
Media queries is one of the most revolutionary features of CSS3, which allows our website to be adapted to a wide range of different devices. Specifically, developers can use media queries to identify device environments and then apply different CSS rules based on different device environments, enabling different layou
You can specify a special style sheet for different media devices (such as screens and printers) through media properties, while CSS3 makes it more effective through media queries. You can add certain query conditions for media types to detect devices and use different style
Document directory
First Run
Overview
HTML code
CSS
Css3 media Query
Elastic Images
Elastically embedded video
Final Effect
Summary
Reprinted please specify original address: http://www.cnblogs.com/softlover/archive/2012/11/21/2781388.html
The screen resolution range is large, from 320px (iPhone) to 2560px (large display), or even greater. The user does not just use a desktop computer to access the web site. He uses mobile phones, laptop
Reprint please indicate original address: http://www.cnblogs.com/softlover/archive/2012/11/21/2781388.htmlThe screen resolution now ranges from 320px (IPhone) to 2560px (large display) and even larger. The user is not just using a desktop computer to access a Web site, he uses a mobile phone, a laptop, a Tablet PC. So the traditional set of Web site width is fixed value, has been unable to meet the need. The web design needs to adapt to this new requirement, and the page layout needs to be autom
as it is not adaptive.CSS3 Media Query (CSS3 media Query) medium queries script (media Queries Javascript)IE8 or lower versions do not support CSS3 media queries, but this is accomplis
Source: http://bbs.html5cn.org/forum.php? MoD = viewthread tid = 11516 extra =
The screen resolution range is large, from 320px (iPhone) to 2560px (large display), or even greater. The user does not just use a desktop computer to access the web site. He uses mobile phones, laptops, and tablets. Therefore, the traditional website width setting is fixed and cannot meet the requirements. The web design needs to adapt to this new requirement, and the page layout needs to be automatically adjusted
In CSS2, you can specify a dedicated style sheet for different media devices, such as screens, printers, and now withCSS3Media Queries feature, which can be implemented more effectively. You can add certain conditions to the media type, detect the device, and adopt a different style sheet.For example, you can put styles for display on large screens and special st
To introduce the media, specifically the CSS media queries, the media query contains a media type and at least one expression that restricts the range of the style sheet using media properties such as width, height, and color. CSS
Viewport setting adapts to mobile device screen sizeViewport: Allows developers to create a virtual window and customize its window size or zoom functionname= "Viewport" content= "width=device-width,initial-scale=1, User-scalable=0 "/>The content property in the code can be set up with the following 6 different parametersHow Media queries Works1, define the current screen viewable area of the maximum width
Viewpoint setting adapts to mobile device screen size(1) The main function of the viewpoint virtual window is to allow the developer to create a virtual window (viewpoint) and customize its window size and zoom capabilities.Mobile Safari Virtual window default size is 980 pixels, Android Browser default is 800 pixels, ie default is 974 pixels, opera is 850 pixels(2) Using viewpointdefined in the META element, its primary role is to set the Web page to fit the mobile device's screen size Content
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.