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

Which of the following statements is true about style introduction? ( )

A.
Inline style is to set style attribute for elements, which only takes effect for the current tag.
B.
The internal style is to set the style attribute for the element.
C.
The rel attribute in the link tag is used to set the path of the external css file.
D.
@import belongs to html tag.
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】Which of the following statements about class and id selectors is incorrect? ( )

A.
Class selector is defined by .Class name {style}.
B.
The application method of id selector is <tag_name id="id name">.
C.
The application method of class selector is <tag_name class="class name">.
D.
The id selector and the class selector are only different in writing, and there is no difference in application and meaning.

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

A.
The syntax format of id selector is "#id name".
B.
If you want to use the id selector, you should first define an id attribute value for the element, such as: <div id="a"></div>.
C.
# selector is more suitable for defining class styles.
D.
An id name can only correspond to a specific element object of a document.

【多选题】What are the correct statements about link and import? ( )

A.
Import styles are used in the <head> tag as follows: <style>@import url("");</style>.
B.
When the page is loaded, the CSS referenced by link will not be loaded at the same time.
C.
CSS referenced by @import will not be loaded until all pages are downloaded.
D.
Pages that refer to CSS in the way of @import will appear unstyled flicker when loading.

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

A.
The floating of elements is horizontal, which means that elements can only move left and right, but not up and down.
B.
Floating is very useful in web page layout.
C.
Elements before floating element will also be affected.
D.
The text element after the floating element will surround it.

【单选题】Which statement about style priority is incorrect? ( )

A.
Css styles directly defined on tags have the highest level.
B.
Internal styles have lower priority than inline styles.
C.
External style sheets have the lowest level.
D.
When the attributes in the style conflict, the preset comes into effect.

【单选题】The round dot before the unordered list item <li> can be removed by ( ) .

A.
clear:both;
B.
font-style:none;
C.
list-style:none;
D.
list-style:normal;

【多选题】(Multiple-choice question) In css, what are the common methods to clear floating? ( )

A.
Add an empty block element afterthefloating element.
B.
Add an empty line element after the floating element.
C.
Set the height of the parent element of the floating element.
D.
Set to clear floating by means of pseudo class.
E.
Set floating for parent elementof the floating element.