单选题 如何通过CSS设置文本的水平对齐方式为右对齐( )。css

A、 text-align: right;
B、 align: right;
C、 horizontal-align: right;
D、 right-align: text;
下载APP答题
由4l***iz提供 分享 举报 纠错

相关试题

单选题 下列哪个CSS代码段能够正确地为一个类名为footer的元素内的所有超链接设置默认颜色为灰色,并且在鼠标悬停时变为白色( )。

A、css.footer a { color: gray; } .footer a:hover { color: white; }
B、css.footer { color: gray; } .footer:hover { color: white; }
C、cssa .footer { color: gray; } a .footer:hover { color: white; }
D、css.footer a:link { color: gray; } .footer a:visited { color: white; }

单选题 在HTML中,哪个属性用于指定表单数据提交时所使用的编码类型( )。

A、action
B、method
C、enctype
D、target

单选题 在CSS中,如何为一个ID为header的元素内的所有超链接设置鼠标悬停时的颜色为蓝色,并且鼠标样式为“手形”( )。

A、css#header a:hover { color: blue; cursor: pointer; }
B、css#header:hover a { color: blue; cursor: hand; }
C、css#header a { color: blue; cursor: pointer; }
D、cssa:hover #header { color: blue; cursor: pointer; }

单选题 以下CSS代码段中,哪个选项能够正确实现一个元素相对于其正常位置向下移动10px,向右移动20px的效果( )。css

A、.element { position: relative; top: 10px; left: 20px; }
B、.element { position: absolute; top: 10px; right: -20px; }
C、.element { position: fixed; bottom: -10px; left: 20px; }
D、.element { position: static; margin-top: 10px; margin-left: 20px; }

单选题 如何在CSS中为一个超链接设置在被点击时的颜色为橙色,并且鼠标样式为“移动”状态(通常为十字形)( )。

A、cssa:active { color: orange; cursor: move; }
B、cssa:hover { color: orange; cursor: move; }
C、cssa:link { color: orange; cursor: move; }
D、cssa:visited { color: orange; cursor: move; }

单选题 在HTML中,有序列表的默认编号类型是什么( )。

A、阿拉伯数字(1, 2, 3, ...)
B、大写字母(A, B, C, ...)
C、小写字母(a, b, c, ...)
D、罗马数字(I, II, III, ...)

单选题 下列哪个值不是text-align属性的有效值( )。css

A、left
B、center
C、justify
D、middle

单选题 在HTML表单中,如何创建一个文件上传框( )。

A、<input type="file">
B、<input type="upload">
C、<file input>
D、<upload input>