大学职业资格刷题搜题APP
下载APP
课程
题库模板
WORD模板下载
EXCEL模板下载
题库创建教程
创建题库
登录
logo - 刷刷题
创建自己的小题库
搜索
【单选题】

In css, to align the box vertically with the center of the page, please fill in the blank space, which option is correct? ( ).box{ position: ; top:0; bottom:0; left:0; right:0; margin: ; width: 300px; height: 200px; border:2px solid #ccc; }

A.
absolute 50%
B.
absolute auto
C.
relative 50%
D.
relative auto
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
收藏 - 刷刷题收藏
举报
刷刷题
参考答案:
举一反三

【单选题】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.

【单选题】Which of the following options applies inline style? ( )

A.
<p class="style">
B.
<p style="color: red;">
C.
<p id="content">
D.
<p class="style1 style2">

【单选题】To create a multiline text input box in the form, the initial value oftext input box is "this is a multiline text box". Which of the following statements is correct? ( )

A.
<textarea name="text1" value="this is a multiline text box"></textarea>
B.
<input type= "text" value="this is a multiline text box" name="text1">
C.
<input type= "textarea" name="text1" value="this is a multiline text">
D.
<textarea name="text1" cols=20 rows=5>this is a multiline text box</textarea>

【单选题】The following code snippet is a part of the style settings of a web page:<style type="text/css">.blue { color:blue }.red { color:red }</style>Now it is required to set the first h1 heading...

A.
<h1 id="red">the first heading</h1><p id="blue">the first paragraph</p>
B.
<h1 color:red>the first heading</h1><p color:blue>the first paragraph</p>
C.
<h1 class="red">the first heading</h1><p class="blue">the first paragraph</p>
D.
<h2 class="red">the first heading</h2><h1>the first heading</h1><p class="blue">the first paragraph</p>
相关题目:
【单选题】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.
【单选题】Which of the following options applies inline style? ( )
A.
<p class="style">
B.
<p style="color: red;">
C.
<p id="content">
D.
<p class="style1 style2">
【单选题】To create a multiline text input box in the form, the initial value oftext input box is "this is a multiline text box". Which of the following statements is correct? ( )
A.
<textarea name="text1" value="this is a multiline text box"></textarea>
B.
<input type= "text" value="this is a multiline text box" name="text1">
C.
<input type= "textarea" name="text1" value="this is a multiline text">
D.
<textarea name="text1" cols=20 rows=5>this is a multiline text box</textarea>
【单选题】The following code snippet is a part of the style settings of a web page:<style type="text/css">.blue { color:blue }.red { color:red }</style>Now it is required to set the first h1 heading...
A.
<h1 id="red">the first heading</h1><p id="blue">the first paragraph</p>
B.
<h1 color:red>the first heading</h1><p color:blue>the first paragraph</p>
C.
<h1 class="red">the first heading</h1><p class="blue">the first paragraph</p>
D.
<h2 class="red">the first heading</h2><h1>the first heading</h1><p class="blue">the first paragraph</p>
刷刷题-刷题-导入试题 - 刷刷题
参考解析:
题目纠错 0
发布
刷刷题-刷题-导入试题 - 刷刷题刷刷题-刷题-导入试题 - 刷刷题刷刷题-刷题-导入试题 - 刷刷题
刷刷题-刷题-导入试题 - 刷刷题
刷刷题-刷题-导入试题 - 刷刷题
刷刷题-单词鸭