Looking for Sprite words early in the morning, I accidentally learned a fascinating little tool from the introduction: bg2css.
I remember reading the Google Chinese homepage more than a year ago.Source codeIt attracts its CSS: The icons used on the
How to center a div
The main style definition is as follows:
Body {text-align: center ;}# Center {margin-Right: auto; margin-left: auto ;}
Note:
First, define text-align: center in the parent element. This means that the content in the parent
Some trivial knowledge points in CSS
1: Order of adding the style of tag:
A: link {color: #006600; font-size: 30px;}/* unaccessed link green */
A: visited {color: # ff0000; font-size: 30px; text-Decoration: underline;}/* accessed link red */
In addition to the common "type selector (E), wildcard selector (*), include selector (E1 E2), and Id selector (# ID), selector grouping (E1, E2, E3), class selector (E. class), pseudo class, and pseudo object selector (E: P), and "attribute
If CSS is correct and the link does not go wrong, why does the CSS style not take effect?
Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Doctype HTML public "-// W3C //
I. First, let's talk about the background transparency of CSS.
It is easier to achieve full transparency. Enter
{Background:Transparent;}
It works in IE, Firefox, and other browsers.Ii. Let's talk about how CSS achieves translucent background.
Only when I read a book today can I find that the XML file can be explicitly displayed in IE Based on the CSS file.
For example, the content of the books. xml file is as follows:
. net using 1861-12991-04-0 yzx zqh The content of the books.css
Because ff (Firefox) is not afraid of IFRAME, so I took the IE knife and did not know whether Bill had a prize. I wrote only one sentence.
Code That's it. Ha, good luck. It is the attribute expression in the CSS of IE only (exclusive). Try
Use CSS to control cellspacing and cellpadding. Classification: it-Silbo @ pm
In tableCellspacing and cellpadding are used to control the spacing between cells. By default, cellspacing and cellpadding are not 0,In this situation, we often set
Border attributes (no style by default)
Border-top: Set the attributes of the upper border
Border-bottom: Set the bottom border attributes
Border-Right: set the right border attributes.
Border-left: Set the attribute of the Left Border
Some people often encounter CSS failures in ASP. NET 2.0 (ASP. NET 1.x may be valid). The main causes and solutions are listed as follows:
1. the CSS file path is incorrect.This problem is a basic problem in Web development. Generally, this
Inline style, such as ... ;Id selectors, for example, # myid;Class, attribute selector, pseudo class (classes, attributes and pseudo-classes), such as. Class {...}, [href $ = dudo.org],: hover;Type (elements), pseudo-type selector (pseudo-elements),
Ayi web standard school
Alibaba Web standard school is a set of video series for beginners of web standards. Although I am just a beginner in web standards, I still hope to share what I learned with you through this school, in this way, not only
In the text box, the browser does not make any special mark on it in the read-only and normal status. On the surface, the effect is the same. In this way, for users, ease of use is not very high.
Of course, we can change the background color of
When studying the styles of other websites, we often find that the same image is called in many background attributes to meet the needs of each part of the webpage. Open this image and you will find that this image contains many small images, such:
The biggest difference between CSS layout and traditional table layout is that the original positioning uses tables to control the spacing of text layout sections through table spacing or colorless and transparent GIF images; currently, the layer
I always thought that the center alignment of UL Li has been mastered. However, during the recent project, it was found that the float: Left method of Li had a problem, that is, it could not be centered (horizontally ), you can only use the
Document directory
Description
Script Syntax:
Definition
OverflowAttribute setting occurs when the content of an element overflows its region.
Inheritance: NoDescription
This attribute defines how the content of the overflow element
Recently I have re-designed my blog site and decided to display the time with a calendar icon. In the past, the solution generally used background images. Thanks to css3. Now we can use css3 to implement this function. I will use some
Document directory
Rules
Combination
Inheritance
Annotation
Locating the pseudo-anchor
Pseudo element of the first line
First letter pseudo element
Selection Operator of basic syntax rulesAny HTML element can be a css1
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.