1. Check the HTML elements for spelling errors, forgetting to end tags
Even the veteran also often mistook the nested relationship of Div. You can use the Dreamweaver verification function to check for errors.
2. Check that the CSS is correct
A lot of friends when using Dreamweaver8 will encounter the situation: to the current edited document linked to the CSS file, and the page element to apply the definition of CSS style, but in the DW8 can not see any effect. The following figure.
H1 tags to improve SEO keyword ranking role presumably is a webmaster know, but H1 label will make the text become large, sometimes in the Web page seems out of place. The following small series to share with you under the CSS hidden text method.
CSS can handle 16,777,216 colors, using first name, RGB value, or hexadecimal code.
Red colorEqual toRGB (255,0,0)Equal toRGB (100%,0%,0%)Equal to#ff0000Equal to#f00
There are 17 predefined colors, which are:
Aqua, black, blue, fuchsia, gray,
The code is as follows:
header_left
header_right
. header{width:1000px;background:red;}
. header. Header_left{width:600px;background:green;float:left;}
. header. Header_right{width:400px;background:pink;float:right;}
. Clear{clear:both;}
Such div+
The small triangle below the dialog bubble box in the Web page is very useful, the method of drawing a lot of, want what font icon, small picture and so on all can, but are not nimble and quick, have the CSS3 after drawing a triangle is very simple
As a front-end Web developer for CSS properties of familiarity is not to be avoided, but also a lot of the necessary, the following article to organize as a developer you must know 9 CSS properties, very practical so there is demand you can refer to
In fact, the use of anchor points as a marker, through the click to achieve the switch. CSS CodeThe code is as follows:
body,div,ul,li{margin:0; padding:0; font-size:12px;}
. clearfloat{clear:both; height:0; line-height:0; font-size:0;
. tab_ul{
Sichuan Yaan Lushan occurred in the 7-magnitude earthquake, many of the home page has become a gray mourning. The following author has sorted out several CSS code to make the Web page gray
Method 1: Support IE
Some friends when using Css+div to do a station, often encounter such a problem, a frame in different browsers will be distorted or position disorder, this how to do? In fact, the method is very simple, with the following code can be resolved:
The first method margin method, the original code as shown in the figure.
#nei的margin的左右上下的边距. Get the center effect.
The second method. Pisition method, the location of the center is computed by absolute positioning, the code is as
1.--column article list content interval color definition--
Method One (Yahoo provides): if is the default, that is, do not need to change the function of the label getarticlelist parameters, you can use CSS to define (in the background style to
The behavior--expression in CSS
Recently, the behavior of CSS is more interested in, although it is not in line with the standard and only IE can be recognized, but he did give the function of CSS expanded a lot. Here are some words and examples
In the Div+css layout, this is generally the case for the overall architecture:
and for the header section, certainly to display the site title, in addition to displaying the site title, you may want to show other important objects, such as the
the distance before the paragraph is empty two words, do not use the space again. You should use the first line indent text-indent. Length Unit em. The font size relative to the text within the current object. Our first line was indented 2em. 2EM is
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