1. The setting order of the magin tags that set the outer spacing of the container is: top, right, bottom, left
2. Reference other CSS in Css The way is: @import url("main.css");
In the page
3. The following div containers that will cause page wrapping are (multiple choices):
4. Please write the css for horizontal stretching of the background background-image:url("../images/ptjsw_69.gif") repeat-x center top;
5. Please write the css to eliminate the blank line between the content box (
6. Please briefly describe the mechanism of DIV CSS standard page to improve page browsing speed:
Due to the use of DIV CSS production method, it is easier to save time when modifying the page. According to the regional content tag, find the corresponding ID in CSS, which makes it more convenient to modify the page without destroying the layout style of other parts of the page. The separation of performance and structure makes it easier to divide work and reduce interrelation in team development.
7.
border:1px solid #cccccc; border (pixel line color)
position:absolute (relative); relative position (absolute position)
background-position: left bottom; The position of the background in the container
background-repeat:no-repeat; The background stretching method
cursor:pointer; The hand effect when the mouse is over
8.XHTML 1.0 and There are some differences in versions before HTML4.01:
1) More standardized and strict.
2) Whether to ignore the padding value when calculating the width of the element.
3) Allow inline elements to have attributes of block elements, such as specifying width for inline elements.
4) The inheritance of attributes of elements is very different.
5) The attributes of elements are richer, and the space for control and expression is increased.
9.
10.
Among them: DOCTYPE tells the browser that this is a file type specified for the web page
html is the first element of the web page
PUBLIC This is An announced universal document type
"-//W3C//DTD XHTML 1.0 Strict //EN" uses the strict xhtml1.0 standard, and the markup is in English
http://www.w3. org/TR/xhtml1/DTD/xhtml1-Strict.dtd A URL pointing to the definition of xhtml1.0
The xmlns attribute specifies which markup language the element belongs to. Other elements inherit the xmlns attribute of the parent class by default.
Change DOCTYPE to strict XHTML 1.0 to provide clear standards to browsers. When not specified, the browser will parse according to its own standards, and deviations will occur during parsing.
There are some differences between XHTML 1.0 and previous versions of HTML4.01:
They are more standardized and strict.
Whether to ignore the padding value when calculating the width of the element.
Allows inline elements to have attributes of block elements, such as specifying width for inline elements.
There is a big difference in the inheritance of attributes of elements.
The attributes of elements are richer, and the space for control and expression is increased.