There are four methods to call CSS: Intra-row style, embedded style, link type, and @ Import. at the same level, we can understand their priorities according to the principle of proximity, and the style defined beyond the previous will be
-- The translucent effect behind the CSS pop-up formStyle = "filter: alpha (opacity = 30 )"
-- The lowest Div height cannot be 1pxAdd font-size: 0px, because the DIV has a default font size.
-- Position: absoluteStyle = "position: absolute ;"In
CSS selector:
1. Tag selector: set the same CSS format for all HTML tags.
2. Category selector: for example. class {color: green; font-size: 20px} class is the class name, color and font-size are the attributes, and green and 20px are the values
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Header: HeaderContent: content/ContainerEnd: footerNavigation: navSidebar: sidebarColumn: ColumnOverall Layout width of the page peripheral
Use Div +
CSSIt may take some time to write the website structure. In this process, we find that we need to set the font to a ratio of 12px, the font size is smaller than 14px (13px cannot be distinguished from 12px in IE ). Today we found that
AzimuthBackground-attachment -- move the background image along the scroll axisBackground-color -- background colorBackground-image -- background imageBackground-Position -- the position of the background imageBackground-repeat -- display method of
After the previous article "Best Practices for front-end code standards: javascript" was published, we were very enthusiastic about it. It reflected that front-end engineers paid great attention to writing standard front-end code. These best
Nobr Element
Code do not wrap or wrap
Nowrap Element
Code div does not wrap
Float attributes
Code first div the second div does not wrap
Use the diplay attribute in CSS
Text Box
CSS float is similar to latex float;
In the list item, use the following configuration options: List-style-image + list-style-type combination.
Auto makes up for the difference between the other parts and the required sum. In the complex
First, let's talk about the differences between Firefox and IE in CSS width display:
In fact, CSS 'width' refers to the width of the width in the standard CSS, and the width in Firefox is the width. It only contains the width of the content in the
Switch: bytes
Image rotation can be said to be an effect, but gradually, the rotation is not only in the category of visual effects, it is more useful and functional. As we all know, sometimes a photo needs to be taken in a horizontal way. It needs
The attribute Background in CSS is the most common. But do you really understand it?
Background represents the Background and can be used for various elements. A single function indicates the background of an element without affecting the layout of
It has been nearly half a year since I started to access the HTML + CSS layout. Besides the three or four months of soy sauce in the middle, I spent about a month working on it, summarize what you have learned.First, let's talk about HTML elements,
Before summing up floating and positioning, we should introduce the concept thatHTMLMediumDocument StreamThe simple understanding of the document stream is that the elements in the HTML are arranged from left to right in the order of code, from top
Align the two ends: Set the two ends of the text content, adjust the horizontal spacing of the text, so that it is evenly distributed between the left and right margins. Alignment on both ends makes the text on both sides neatly edges. Each row of
Box {2/* vertical center method recognized by mainstream non-IE browsers */3 display: table-cell;4 vertical-align: middle;56/* set the horizontal center */7 text-align: center;89/* Hack for IE */10 * display: block;11 * font-size: 175px;/* It is
Solution to the IE6 background image cache bug: the background image cache bug is one of the many common bugs in IE6.
A. Method 1: use Javascript scripts [recommended]
B. Method 2: Use the CSS expression html {}{Filter: expression(document.exe
This is a small document I have summarized for many years. Recently, I have seen some questions about browser compatibility.
Not necessarily all, and some may be inaccurate. For example, the new IE8 and Chrome are not involved much. Although some
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