首页 > 医卫类考试
题目内容 (请给出正确答案)
[单选题]

【概念理解】以下代码片断中,属于绝对定位的是()

A.#box{width:100px;height:50px;}

B.#box{width:100px;height:50px;position:absolute;}

C.#box{width:100px;height:50px; position:static;}

D.#box{width:100px;height:50px; position:relative;}

答案
收藏

B、#box{width:100px;height:50px;position:absolute;}

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“【概念理解】以下代码片断中,属于绝对定位的是()”相关的问题
第1题
有CSS代码:

.box{

width:200px;

height:100px;

border:10px solid red;

}

.box p{

width:100px;

height:100px

padding-top:50%;

background-color:green;

}

同时具有如下html代码:

......

<div class="box">

<p>段落内容<p>

</div>

......

请计算p标签在页面中真实占据高度为多少?( )

A.200px

B.120px

C.150px

D.220px

点击查看答案
第2题
有样式代码如下:

.box span{

display:inline-block;

width:100px;

height:100px;

border:1px solid red;

}

同时,编写有结构代码如下:

......

<div class="box">

<span>1</span>

<span>2</span>

</div>

......

那么页面中的两个span显示效果说法有误的是 ( )。

A.两个span将在不同行显示

B.两个span都具有高宽分别为100px

C.两个span都具有红色边框

D.两个span在一行显示

点击查看答案
第3题
阅读代码回答问题,正确的是()。#head{Position:absolute;Left:9px;Top:12px;Width:200px;Height:60px;Background-color:#FF0000;}

A.#head 类选择器

B.Position:absolute;绝对定位,页面的元素固定不变

C.Width:200px;Height:60px;表示左右和上下边距

D.ackground-color:#FF0000;背景图片

点击查看答案
第4题
div{width: 200px; height: 100px;}#div1{background: red; }#div2{background:blue; }表示的意思是:”第一个是div标签选择器,可以描述具有共性的属性;第二、三个分别定义红色和蓝色背景,用于描述具有个性的div属性;目的是减少代码重复,提高代码的重用性”这一说法是否正确()
点击查看答案
第5题
当设置某个盒子的样式代码如下:

.box {

box-sizing:border-box;

width:300px;

height:300px;

border:1px solid red;

padding:5px;

}

该盒子真实的宽度是多少?( )

A.310px

B.312px

C.306px

D.300px

点击查看答案
第6题
span{width:100px;height:20px;line-height:20px;}最终span的总宽是100px()
点击查看答案
第7题
下列选项中,不属于BOX的Border属性的有()

A.order—width

B.order—height

C.order—color

D.order—size

点击查看答案
第8题
在网页中插入一条长为100像素,粗细为4个像素的红色水平线,并左对齐,以下HTML代码正确的是____()

A.<hr width=100 height=color="red" align="left">

B.<hr width=100 size=4 color="red" align="left">

C.<hr width=100 size=4 bordercolor="red">

D.<hr Length=100 size=4 color="red" align="left">

点击查看答案
第9题
在HTML中,要创造一个宽度为90像素,高度为40像素,边框宽度为1像素的表格,下列代码正确的是()。(选择一项)

A.<tr width="90" height="40" border="1">

B.<tr height="90" width="40" border="1">

C.<th width="90" height="40" border="1">

D.<table width="90" height="40" border="1">

点击查看答案
第10题
根据规范,以下 HTML 和 CSS 代码解析后, container.clientWidth 的值是:()<style>#container {width: 200px;height: 200px;padding: 20px;margin: 20px;border: solide 10px black;}</style><div id="container">content</div>

A.200

B.240

C.280

D.300

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改