logo - 刷刷题
下载APP
【单选题】

Which of the following descriptions of the css codes is correct? ( ).box p{ font: 60 italic 20px/80px 'arial'; }

A.
The first element 60 in the font attribute represents the font size.
B.
These elements in the font attribute can be transposed at will.
C.
The last element 'arial' in the font attribute can be omitted without writing.
D.
The 80px in the font attribute indicates the line height of the text in the p tag, which can be omitted.
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】To set the background image of a webpage as "bg.jpg", which of the following is correct? ( )

A.
<body background-image="bg.jpg">
B.
<body background="bg.jpg">
C.
<body image="bg.jpg">
D.
<body background-color="bg.jpg">

【单选题】In css, what is the incorrect description about the following background code? ( ).box { background:url("../image/author-1.jpg") no-repeat center/50% red;}

A.
The above code indicates that the background color is red, the image is centered, the size is 50%, and the image is not repeated.
B.
If no-repeat is deleted, the image will not repeat.
C.
If the element url("../image/author-1.jpg") is deleted, a red background will be displayed.
D.
If no-repeat is changed to repeat-x, the image is horizontally repeated.

【单选题】In CSS style, the meaning of background-position:-10px 20px is ( ).

A.
The background image is shifted to the right by 10px and upward by 20px.
B.
The background image is shifted to the right by 10px and downward by 20px.
C.
The background image is shifted to the left by 10px and upward by 20px.
D.
The background image is shifted to the left by 10px and downward by 20px.

【单选题】Regarding the following css codes, which of following is incorrect? ( )<p style="border : 1px solid red;font-size: 10px; background-color: green">

A.
The background color of the paragraph is red.
B.
The border size of the paragraph is 1px.
C.
The font size of the paragraph is 10px.
D.
The border color of the paragraph is red.

【单选题】Which of the following statements about relative position is incorrect? ( )

A.
Relative position means moving relative to the element itself.
B.
After moving the relative position element, the original space occupied by it will not change.
C.
Only after setting the relative position, top, left, right, bottom, and z-index will take effect.
D.
We can useposition:relative to set the relative position of the html element.

【单选题】Which of the following statements about absolute position is correct? ( )

A.
You can useposition:fixedto set absolute position.
B.
The location of an absolute position element is relative to its parent element.
C.
The location of an absolute position element may be relative to <html>.
D.
Absolute position makes the element occupy the original space.