media type@media "screen and (max-device-width:480px) {. demo{Background-color: #ccc;}}Decide which style to apply when the orientation of a mobile device, such as the ipad, changes.When the mobile device is in Portrait portrait mode, the portrait style file is applied, and the landscape style file is applied when the mobile device is in landscape landscape mode.④media Queries Grammar Summary@media [Media_query] Media_type and Media_featureMedia_query query keywords, you can use not, only. Not
1 Public"-//w3c//dtd XHTML 1.0 strict//en"2"Http://www.w3.org/TR/xhtml1/TDT/xhtml1-strit.dtd" >34567 to + -class= "P1" > I am Braille theclass= "P2" > I am a concave character * $Panax Notoginseng -CSS3 concave and convex characters
Media properties for HTML Try it yourself.Definition and usageThe media property is used to specify different styles for different media types.Tip: If you want to define more than one media type in a STYLE element, use a comma-delimited list (for example: Browser supportAll major browsers support the media property's "screen", "Print", and "all" values.Note: Opera also supports "handheld" values.Grammarvalue" >Property value
value
Description
Screen
compu
course, because it is in plain text format, you can copy the content at will. The appearance of the plain text model also gives more people, including those with visual impairment, the opportunity to get knowledge from Google Book Search, because the plain text can support multiple types of text readers, for example, a text reading tool, a screen reader, and a Braille display. This also initially achieves the goal of Google, because this method allow
Recently, when researching the framework of responsive design, I found that there are many related property introductions on the Internet, but there are few articles of entry-level use of the system, I have compiled an introductory knowledge by myself, and there is no advanced theory or framework involved.There are more and more sites and WAP sites using responsive design, because large-screen mobile devices are becoming more and more popular. Self-adapting layouts are no longer competent for a
bold, whether display or paper media:Copy codeThe Code is as follows: Different media typesNote:Media type names are case insensitive.
Media type
Description
All
Used for all media devices.
Aural
Used for speech and audio synthesizer.
Braille
It is used for blind people to use the dot-text method for tactile feedback devices.
Embossed
Blind persons used for paging use the dot-Print printer.
located between the Mainly includes The Role:HREF attribute: Sets the base address of all the relative URL addresses of the Web page using the HTTP protocol, if the Web page is like It will no longer represent the index.html in the same directory as the current page without using the Target property: Used to set the destination window for all hyperlinks displayed in the page, set the target property in the Several main attributes:href: The URL of another document or resourceRel and Rev: Define
Msaa stands for Microsoft Active accessibility. This is similar to DCOM technology. The technical model is like this, UIProgramYou can expose an interface to allow another program to control it. The original intention of msaa technology is to facilitate the use of Windows programs for the disabled. For example, a blind person cannot see a window, but a blind person can connect to a computer through a USB reading screen, and the reading screen can obtain program information through the interface
@ Media usage:
@ Media:
All: all devices.
Aural: used for speech and music synthesizer.
Braille: used for tactile feedback devices.
Embossed: used for convex Character printing.
Handheld: small or portable device.
Print: printer.
Projection: projection image.
Screen: Computer Display.
Tty: a device that uses fixed-distance character grids, such as a telex typewriter and terminal.
TV: TV devices.
SRules: too many rules .. The main parameters are not
It turns out that responsive layout is mysterious and needs to be implemented using Js.
I accidentally found an article today. Everything is so easy ~ A media query is used to determine the screen size, and the corresponding style is used according to the screen size.
At present, more and more websites and WAP sites are using responsive design, because mobile devices with large screens are becoming increasingly popular. However, the Adaptive Layout cannot meet various Browser needs. The purpos
of mankind to the gods. The limits of life are always there, unyielding challenges are indispensable." Reading this, I think of my friends who push big stones to the mountains every day. Even if the rock returns to the origin after the mountain is reached, he is still pushing, showing unyielding ......
Note: This book is one of the "Humanistic series" of Braille press. I think it is a small collection of Shi Tiesheng's novels and essays. Although th
. [billing_dx @ bmcs1 screen-4.2.1] $ make # compile CPP = "gcc-E-DETCSCREENRC = '"/account/work/ymm/usr/local/etc/screenrc "'- DSCREENENCODINGS = '"/account/work/ymm/usr/local/share/screen/utf8encodings"' "srcdir =. sh. /osdef. shAWK = gawk CC = "gcc-g-O2-D_GNU_SOURCE" srcdir =. sh ./Comm. shAWK = gawk srcdir =. sh./term. sh ...... Gcc-o screen. o ansi. o fileio. o mark. o misc. o resize. o socket. o search. o tty. o term. o window. o utmp. o loadav. o putenv. o help. o termcap. o input. o atta
A style sheet can be external, inline, or embedded. links to external style files are generally:
This should be written in the head label. The content is case-insensitive, and the double quotation marks can be single quotation marks or omitted. Explain one by one:
Link: Is a common HTML Tag. It is used not only to link external styles, for example, to specify the icon in the address bar:
Rel = "stylesheet": (Rel is the abbreviation of relation) indicates that the link file is used for the style
To support earlier browsers, you must stick to the css1 media descriptor screen and print. They are mutually exclusive. Therefore, when a page is generated for the screen display, the browser will ignore the print style sheet, and vice versa. Therefore, each style sheet must contain the same style selector, but there are different rule declarations to generate page styles for different output devices.Screen (default), submitted to the computer screen;Print, output to the printer;Projection, subm
), and Braille devices. It returns a Boolean value when the logic is correct:{ ...}As you can see, by using a combination of dimensions and attribute-based queries, we could create complex stylesheets to effectively target a large number of devices and work on them most effectively. This is the most important aspect of media queries: they allow us to configure selectively loaded CSS styles for the feature's device.Simplified sample ApplicationNow t
= 24px */} Five: element unknown width centered. Let's first introduce the unknown width, the element centered method, for responsive web design is helpful, we can come to understand. The first method: If the page HTML structure is as follows: You only need to set the text alignment to the parent element div to be center-aligned. Child element set Display:inline-block can be. The following code: Iv{text-align:center}P{display:inline-block} The second method is as follows: div{position:relati
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.