Two lines of CSS to solve, a total of 5 options
One
Iframe{n1ifm:expression (this.src= ' About:blank ', this.outerhtml= ');} * * This line of code is to solve the problem of an IFRAME!
Script{nojs1:expression (This.src.toLowerCase (). IndexOf ('
What to note:
First, the name of the selected word should choose not too specific to express a certain state (such as color, size, etc.) words, to avoid when the state changes when the names lose meaning.
Second, the style class name consists of a
1. Attributes are written on a single line, there must be spaces between attributes, property names and values, and between attributes and "{}", for example:. class {width:400px; height:300px;}
2. The writing order of the attributes:
2.1.
One of the most important advantages of DIV+CSS: maintain visual consistency; the previous form nesting method will make the page and the page, or region and region between the display effect will be biased. The use of the Div+css method, all pages,
Div+css is one of the commonly used terms in Web site standards (or "web standards"), usually to illustrate the difference in how tables are positioned in the HTML web design language, because the XHTML web design standard does not use the table
Dreamweaver is a Web page production and management site in one of the WYSIWYG Web page editor. Because of the powerful function of DW, it is possible to define CSS directly in him (style sheet), and this CSS has given me a little problem.
The
Concept
The browser determines which attribute values are most relevant to the element by judging the priority, and applies to the element. The priority is determined by the matching rule that the selector consists of.
How to calculate?Precedence
First, the CSS control of the UL indentation spacing method:
computer software and hardware application network www.45it.com
Two, CSS remove Li Point of three ways:Method One:
Baidu Yahoo Sina Google
Some time ago to do a small project encountered a way of navigation and then suddenly think of a long time ago saw the shape of the ladder irregular navigation, try to do a bit. The results met a few problems, and then in a colleague's reminder to
The exquisite table is the front-end development uses a component, many times we use the complex page style code, produces this kind of table, causes the page the modification and the readability are very poor. It is recommended to use CSS directly
This article introduced to improve the efficiency of writing CSS code 10 habits, see feel good, you can learn. The bottom of the article has the original link.
1, maintain consistency.
Like anything else, it's worth keeping consistency. Keep it
In the CSS 2.1 feature that has been supported is counter (), using it, you can easily add serial numbers to page titles, blocks, and other types of pages that appear consecutively. With it, you don't have to limit yourself to using
To achieve
CSS for some special effects to prepare a specific tool, we call it "pseudo class." There are a few of them that we often use, and we'll go into the details of the four pseudo classes that are often used to define the link style, respectively:The
Font-style:
Inherit: Inheriting
Italic: Italic
Normal: OK
Oblique: Oblique body
Font-size:
Xx-small: Take the smallest of all relative size values;
X-small: Only fonts larger than Xx-small
Small: Default Small font
Medium: Default value
CSS Filter is the unique technology of IE, other browsers do not support, so for the greatest compatibility and standardization, should try to avoid for IE to use the filter alone, if you need some special effects, should consider other
A few days in the three columns with CSS layout of the sudden thought of such a method, the idea of their own feel a little crazy, if there is anything wrong in the place please you feel free.
When you need to write a three-column layout, I usually
There are three types of CSS selectors. ① contextual selectors; ②id and class selectors; ③ property selectors, and the biggest benefit of contextual selectors is that it's convenient to add styles based on location for HTML elementsFor example, we
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.