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

In css3, which of the following statements about the sibling selector is incorrect? ( )

A.
A sibling selector can select an element that follows another element, and both have the same parent element.
B.
Sibling selector only retrieves backward, not forward.
C.
Use "~" to represent ordinary sibling selectors.
D.
Use "+" to represent adjacent sibling selector to indicate all subsequent elements with the same parent element.
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】Which of the following statements about the following code iscorrect? ( ).box div[class*=s]{background: red }

A.
The background color ofthe first div with s in its class name in box is red.
B.
The background color of all the divs with s in their class names in box is red.
C.
The background color of the first div ending with s in its class name in box is red.
D.
The background color of all the divs ending with s in their class names in box is red.

【单选题】Which of the following codes can achieve the following effect? (The background color of all the divs starting with n in their class names in box is red.) ( )

A.
.box div[class^=n]{background:red}
B.
.box div[class*=n]{background:red}
C.
box div[class=n]{background:red}
D.
.box div[class$=n]{background:red}

【单选题】Which selector has the highest priority? ( )

A.
Attribute selector
B.
Id selector
C.
Tag selector
D.
!important

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

A.
The transition attribute is used to set thetransition effect of a element.
B.
After transition-delay property is set to 0, the transition has no effect.
C.
We need to always specify the transition-duration property, otherwise the duration is 0, and the transition will have no effect.
D.
The transition-delay is used to define when the transition effect starts.

【单选题】In css, one of the codes is transition:2s; what does it mean? ( )

A.
The animation lasts for 2s.
B.
The animation begins to take effect after 2s.
C.
The animation skips the effect of the first 2s.
D.
The animation starts to pause at 2s.

【单选题】In css, you need to set the element to have a 3D attribute, the code is ( ), and it moves backward 100px along the Z axis. Which of the codes is correct? ( )

A.
transform-style:3d; transform:translateZ(100px)
B.
transform-style:preserve-3d; transform:translateZ(100px)
C.
transform-style3d; transform:translateZ(-100px)
D.
transform-style:preserve-3d; transform:translateZ(-100px)

【单选题】In css, the element whose class name is box needs to be rotated by 45deg in the page when the mouse passes by. Which of the following codes is correct? ( )

A.
.box:hover{transform:rotate(45deg)}
B.
.box:focus{transform:rotate(45deg)}
C.
.box:hover{transform:skew(45deg)}
D.
.box:focus{transform:skew(45deg)}