Class SelectorIn CSS, the class selector is displayed with a point number:
Copy Code code as follows:
. Center {Text-align:center}
In the above example, all HTML elements that have the center class are centered.
In the following
No matter who, in the process of making the page will encounter such or such problems, out of the question is sure to solve. The premise of solving the problem is to know where the problem is, and for beginners it is not always necessary to see the
Today most websites still use the form of nested content to make the site, although this method for us is more familiar, more hands-on; however, it hinders a better, more approachable, more flexible, and more powerful approach to web design--div+css.
Therefore, the good structure of the code to a large extent to optimize its maintainability. The following is a list of four tips for improving the maintainability of CSS files as a guide for Web front-end development with a good CSS style
The goal of the XHTML standard is to replace HTML. According to the consortium, "XHTML is the successor to HTML " (http://www.w3.org/MarkUp/).
XHTML has two main goals:
Creates a more distinct separation between the document structure and
The next step is to really design the layout. As with traditional methods, you first have a rough outline in your mind and then use Photoshop to draw it out. You may see Web standards on the site is mostly very simple, because the Web standards more
Just read the source code of jquery, which on the CSS and classname operation of the idea is really good, it is worth learning.
The definition part of JQuery.className.has is implemented by the regular, in fact, the use of the IndexOf method of the
Translate it, the original: http://15daysofjquery.com/style-sheet-switcheroo/12/
Can be applied to a wide range, especially with the standard framework of the site, such as Pjblog can, as long as through a simple click, you can let the site in an
css Menu Demo product Introduction product One Products One products one products one product one product one Service Introduction service two service two ;li> Service II Service two service two Service two service two
Starting with a fixed width of two columns and beginning with a two-column layout, the left and right column widths can be adapted, and from a list of adaptive layouts we know that setting the adaptation is mainly through the percentage value of the
This article uses Box's legend, to the CSS box (box mode) analysis, has established the clear model for the study CSS reader. The box mode defined by the consortium is as follows: Width and height define the breadth and height of the content
Original:Creating a Star rater using CSS
Link:http://komodomedia.com/blog/index.php/2005/08/24/creating-a-star-rater-using-css/
Copyright:Copyright belongs to the original author, the translation of the document copyright |GREENGNN, and Blueidea.
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
Screen IE browser (ie do not show)
*:lang (en) Select {font:12px!important}/*ff Dedicated * *
Select:empty {font:12px!important}/*safari Visible * *
Here the Select is a selector and is replaced according to the situation. The second sentence is
Nothing to do, organize some CSS text effects, to beginners. Here's an example, which is the most basic filter application, in fact, the combination of two or several different filters will get unexpected results, encounter problems oneself more
A: Do not set postion, general nesting relationship
B: Only outside Div set relative, general nesting relationship
C: Only inside Div set Absolute, the document is nested relationship, the page inside Div float [not float], relative to the page
A few days ago a friend who made web design asked me this question: how to achieve the translucent effect of the image through CSS, and can be supported on both IE and Mozilla. Here are my methods to share with you.
The following illustration is a
Author Mouse
Guests gathered home on an effect, today, someone asked me how to write, so the evening was another rewrite; By the way, put that layout back.
You can take a look at the results of the first home: http://shanghai.kijiji.cn
I tried not
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.