CSS SpritesCSS sprites in the domestic many people called the CSS Wizard, is a Web page image application processing way. It allows you to include all the scattered images of a page in a large image, so that when you visit the page, the loaded picture will not be shown as a picture of the past. For the current popularity of the network speed, no more than 200KB of a single picture of the required loading t
Basic css knowledge + css Selection Characters (element Selection Characters and link selection characters), basic css knowledge
First, I will introduce how to import css styles in html webpages.
1. Intra-row style:
2. In-page style: Set in the head label
3. External link mode: First, you must prepare a
This article is for learning notes, part of which is excerpted from Mr. Xiaofeng's "CSS Design Guide" book
CSS Rules
A CSS rule is actually a CSS instruction that first selects the HTML element and then sets the style of the selected element.
Here is a simple CSS rule tha
What is CSS SpritesICON on the page, column background, picture button merge a background map with the rulesUsing background-position to realize the positioning of background imageCommon CSS Sprites tools1. CSS SatyrYou can drag arrange/auto generate CSS Big picture. pic {Background-image:url ("
In accordance with the CSS specification, floating elements (floats) are moved out of the document stream without affecting the layout of the block box but only the arrangement of the inline box (usually text). Therefore, when its height exceeds the containing container, the normal parent container does not automatically elongate to close the floating element. But sometimes we need this automatic closure behavior, how to deal with it? Web Teaching Net
CSS selector 4 is the next generation CSS selector specification, css Selector
So what are the new things of this version?Selector configuration file
CSS selectors are divided into two types: Quick selectors and complete selectors. The quick selector is suitable for dynamic CSS
Deep understanding of CSS positioning full understanding of relative and absolute positioning of CSS positioning, deep understanding of css
In fact, both the standard stream and floating stream are very understandable, that is, positioning is not very easy to understand, especially relative and absolute positioning. Many of the first students are hard to distingu
Css Note: The Box Model in css and three Positioning Mechanisms (fixed positioning, absolute positioning, floating) and css Mechanism
Elements on the html page can be viewed as boxes. The boxes are arranged together by three Positioning Mechanisms. The box is the box model.Box Model
Each element on the page can be viewed as a rectangular box. Each frame consists
I. Summarysummarize the front-end CSS selectors,css inheritance relations,css box model and other related knowledge, and the error-prone areas to analyze the Explanation. second, The reasonIf you don't understand CSS selectors, inheritance relationships, cascading, and padding,margin differences, and floating issues wh
Implement drop-down menus and drop-down containers with pure CSS (implement navigation bar and navigation drop-down container with pure CSS) and css navigation bar
Although there are many similar and even the same cases on the internet, I still write down the notes for your reference.
I hope you can guide the criticism ~~
First, we start with ul li in the list. W
before doing web pages, only consider the compatibility of IE6 and FF, the company changed, the request is also high, FF and IE 6 7 8 to be fully compatible,
Met to be alone hack IE8. Of course, it is very convenient to use annotations, just add the appropriate comments can be resolved. But the problem is that it's not a lazy habit to write more than one file for a CSS, or to add a comment to the header. The conclusions are as follows:selector{Proper
Box Model prefaceBox model, English is box models. Whether it's div, span, or a is a box.However, images and form elements are all treated as text, and they are not boxes. This is a good understanding, for example, a picture does not put things, it is their own content.The area in the boxThe main attributes in a box are 5: width, height, padding, border, margin. As follows:
Width and Height: the content is wide and high (not the width or height of the box).
padding: inner margin.
Why would you want to split the style file?Easier to find style rules.Simplifies maintenance and facilitates management. You can also provide a specific style for a page.Why would you like to add a bridging style?You can add or remove styles at any time without having to modify the HTML document.Why define two types of media?NN4 @import is not supported, so bridging styles are not recognized.@import ' Header.css ';@import ' Content.css ';@import ' Footer.css ';@imports How does it work?It import
Css1. Eg2, using CSS decoration>3. ID selector and class selectorHTML elements in the ID attribute to set the selector, CSS in the ID selector One # to define4. Class selector is used to describe a uniform set of styles, the class selector differs from the ID selector, class can be used in multiple elements, the class selector is represented by the class attribute in Htnl, and a point number is in the class
Font size using px
Declare CSS within a single line
Compare the following two:
H2 {font-size:18px border:1px solid blue; color: #000; Background-color: #FFF;}
H2 {
font-size:18px;
BORDER:1PX solid blue;
Color: #000;
Background-color: #FFF;
}
The second one looks really formatted, but it doesn't help in reading. Writing in one line allows you to quickly find the part you need.
I used to write a similar second way, but gradually discovered as the a
First, the basic composition of CSS
Selector {property: Property value}
The CSS statement is composed of the above three parts selector written in the curly braces, the curly braces for the declaration, if there are more than one declaration, attributes will be separated by ";" First, let's cite an example:
Body
{
Background: #2CA4CF;
Font-family: "Bold";
Color: #ffffff;
}
We have studied the use of inline
css| Tutorials | Getting Started
Second, write the whole layer structure and CSSNext we create a new folder on the desktop named "Div+css layout Exercise", create a new two blank Notepad document under the folder, and enter the following:
Untitled Document
This is the basic structure of XHTML, named Index.htm, and another Notepad document named Css.css.
Below, we write the basic structure of t
css|dreamweaver| Tutorial
Site original content, reproduced please indicate the source Web page teaching network .
eight. Define CSS style positioning Properties
The positioning style property changes the label or selected text block to the new layer using the default label for the layer defined in the layer preferences.
Set layer positioning properties: In the CS
CSS settings text background color code you know what? Here is a detailed CSS implementation of the background color of a complete example, so that you can more easily understand the meaning of these properties is what it is, now let's look at it together
First, let's take a look at this code:
Background-color: Property sets the background color of the element (the value has three kinds: color_name: (Engli
This article mainly introduces several methods to intercept characters with css. For more information, see Method 1:
The Code is as follows:
String of any length
Note: The content can be any HTML element, including hyperlinks and images. The ellipsis is automatically displayed at the end of IE6. The disadvantage is that the width value must be specified, and the width cannot be a percentage. Otherwise, it is considered as the percentage of the
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.