The background attribute "Background" of CSS provides many attribute values, such as color, image, and positioning, which greatly facilitates the definition of background images on webpages. Check the attribute values provided by background:
I,There are two ways to add images to a webpage:
One is: insert directly to HTML using the labelAnother method is to add a CSS background attribute.
II,How can I determine how to add images ??
Add a decorative image on the webpage through the
I. document specifications
1. All files are archived to the agreed directory (the specific requirements are described in the case of the CSS specification of Douban ):
All CSS types are classified into two categories: Generic and business.
In CSS, there is an absolute positioning method. In the past, I had never understood who the absolute positioning is relative.
It is clear that it is neither relative to the parent element nor to the body.
The nearest adjacent element in
Link: http://www.fendou163.cn/article/20090115/24807.htmlThe key indicator of web site availability is speed. More specifically, the speed at which a page can appear in a visitor's browser window. There are many factors that affect the speed,
1. Use iepngfix
Example: http://www.twinhelix.com/css/iepngfix/demo/
: Http://www.twinhelix.com/css/iepngfix/
Advantages: the entire page can automatically process the transparent background of the PNG-24, do not have to do another picture
CSS font settings
Font familySyntax: font-family: [[ | ],] * [ | ]Allowed value: any font family name can be used. serif (e.g., times)Sans-serif (e.g., Arial or Helvetica)Cursive (e.g., zafc-Chancery)Fantasy (e.g., Western)Monospace (e.g.,
The content of CSS hack comes from: 1. Basic explanation
What is CSS hack?Different browsers, such as Internet Explorer 6, Internet Explorer 7, and Mozilla Firefox, have different understandings of CSS parsing, which leads to different page effects,
1. Vertical center of Div
Vertical-align: middle; increases the line spacing to the same height as the entire DivLine-Height: 200px; insert the text to center vertically. The disadvantage is that you need to control the content rather than line feed.
Wget is an excellent HTTP/FTP download tool, which is powerful and available on almost all UNIX systems. However, using it to dump modern websites has a problem: CSS files are not supported, and it will not automatically download or relink the
I. Before CSS
Before CSS, the content and format of the webpage are connected.
The effect is:
If you want to make the news content different from the news category in font color, modify the corresponding code. If you have a lot of content and
CSS style attributes
I element | I object IMG element | IMG object DHTML Object
IFRAME element | IFRAME object
--------------------------------------------------------------------------------
Create an embedded floating framework.
Member table
The
When CSS is used in XHTML, the element names defined in CSS are case sensitive. To avoid this error, we recommend that all definition names be in lower case. The value of class and ID is case sensitive in HTML and XHTML.
1. style attributes are
Http://www.blog.ce.cn/sp1/zhangnan/14493583725.shtml
CSS naming Rules use English letters, numbers, and underscores (usually in lower case.
I. Short
The abbreviation is mainly used to simplify writing and reduce Code to increase the download speed
Differences between Firefox and IE on JavaScript and CSS
Keywords: javascript; CSS; Firefox; ie; Difference1. Document. formname. Item ("itemname ")Note: in IE, you can use document. formname. Item ("itemname") or document. formname.
Recently, I made a project, and it was a long time to struggle with a small CSS problem-the problem of outer margin folding. Today, it is rare to be idle. I have studied this problem and found that I have learned a lot. So I can write a blog article
I. CSS hackThe following two methods can solve almost all today's hack.1 ,! ImportantWith IE7! Important Support ,! The important method is only for the hack of IE6. (note the writing method. Remember to advance the declaration position .)2, IE6/ie77
In the design of the DIV + CSS template, detecting and searching for bugs in CSS is undoubtedly a pain point. The following experiences may help you quickly find and fix bugs in CSS!
1. Check whether float is cleared.
In fact, many CSS bugs are
Single-line text control, previously completed by programmers, achieves word cut effect. The method described today is compatible with IE and ff. For more information, see the following. To be more practical, use a div to install the content to be
The difference between the two is actually a very old problem. However, many people confuse the pseudo-classes with the pseudo elements due to mistransmission of various types of networks and irresponsible books, and even many CSS veterans. I was
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.