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

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.

【单选题】Which of the following statements about fixed position element is wrong? ( )

A.
The elementposition relative to the browser window is fixed.
B.
Fixed position element cannot overlap with other elements.
C.
Fixed position makes the position of the element independent of the document flow.
D.
Fixed position makes the element occupy no space.

【单选题】To center a layer in the middle of the browser, how to set? ( )

A.
padding: 50% 50%
B.
magin: 50% 50%
C.
magin: 0 auto
D.
None of the above is correct.

【单选题】In the following statements, which one sets the title of the HTML page to "HTML Exercise"? ( )

A.
<head>HTML practice</head>
B.
<title>HTML practice</title>B.<span style="white-space: pre;"> </span><title> HTML practice</title>B.<span style="white-space: pre;"> </span><title> HTML practice</title>HTML practice
C.
<h1>HTML practice</h1>
D.
<t>HTML practice</t>

【单选题】The following code uses the ID attribute of an HTML element to apply a style to a paragraph on a web page:<p id="firstp">This is the first paragraph</p>Which of the following definitions o...

A.
<style type="text/css">p {color:red}</style>
B.
<style type="text/css">*firstp {color:red}</style>
C.
<style type="text/css">.firstp {color:red}</style>
D.
<style type="text/css">#firstp {color:red}</style>

【多选题】(Multiple-choice question) There is a stylesheet document named sheet1.css, and now we intend to apply the styles defined in this stylesheet document to the current page. Which of the following method...

A.
Insert the following code into the <head> section of the web page:<style type= "text/css">@import url('sheet1.css');</style>
B.
Insert the following code into the <head> section of the web page:<link rel="stylesheet" type="text/css" href="sheet1.css">
C.
Insert the following code into the <head> section of the web page:<style type="text/css"><link rel="stylesheet" type="text/css" href="sheet1.css"></style>
D.
The stylesheet document is referenced in the style attribute of each element to be styled with sheet1.css.