单项选择题为div添加一条点线的下边框,颜色为红色,代码正确的是()

A.Div{border:1pxsolidred;}
B.Div{border-bottom:1pxsolidred;}
C.Div{border-bottom:1pxdashedred;}
D.Div{border-bottom:1pxdottedred;}


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题css中,()是设置‘右边框’的语法

A.border-style:<值>
B.border-right:<值>
C.border-top:<值>
D.border-bottom:<值>

2.单项选择题边框宽度用css的()属性表示

A.border-color
B.border-style
C.border-width
D.border-solid

3.单项选择题以下不是盒模型基本属性的是()

A.border
B.margin
C.float
D.padding

4.单项选择题让一个盒子的背景图片只横向平铺()

A.background:url(a1.jpg)repeat-x;
B.background-color:repeat-x;
C.background:url(a1.jpg)repeat-y;
D.background:repeat;

5.单项选择题以下background书写不正确的是()

A.background:none
B.background-color:red
C.background-repeat:no-repeat
D.background-image:green

6.单项选择题以下关于background属性写法不正确的是()

A.background-attachment
B.Background-color
C.background-image
D.background-width

7.单项选择题伪类选择器书写正确的是()

A.;hover{}
B..hover{}
C.#hover{}
D.:hover{}

8.单项选择题margin的作用是()

A.表示文字间距
B.表示内容和文本的间距
C.表示内容和边框之间的距离
D.用于表示元素和元素之间的距离

9.单项选择题行间距用()属性表示

A.line-height
B.height
C.text-height
D.font-size

10.单项选择题设置文本的颜色应该是()属性

A.Color
B.background
C.text-color
D.text-colors