单选题 如何设置文本的字体粗细为粗体(bold),风格为斜体(italic)?

A、 p { font-weight: bold; font-styl
B、 italic; }
C、 p { font-weight: italic; font-styl
D、 bold; }
E、 p { font-weight: bold; font-styl
F、 normal; }
G、 p { font-weight: normal; font-styl
H、 italic; }
下载APP答题
由4l***ck提供 分享 举报 纠错

相关试题

单选题 以下哪种选择器的优先级最高?

A、div
B、box
C、
D、div.box

单选题 以下代码的作用是? css复制代码 p { font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; }

A、设置段落字体为Arial,若不可用则用无衬线字体,字号16px,加粗
B、设置段落字体为Arial,字号16px,斜体
C、设置段落字体为Arial,字号16px,下划线
D、设置段落字体为Arial,字号16px,删除线

单选题 如何移除超链接的下划线?

A、text-decoration: none;
B、text-decoration: underline;
C、text-decoration: overline;
D、text-decoration: line-through

单选题 以下哪种 box-sizing 值会使得元素的宽度包含 padding 和 border?

A、content-box
B、border-box
C、padding-box
D、margin-box

单选题 浮动元素可能导致父容器高度塌陷,以下哪种现象与此相关?

A、子元素溢出父容器
B、父容器背景色无法显示
C、兄弟元素被浮动元素覆盖
D、以上都是

单选题 一个 div 样式如下: css复制代码 div { width: 300px; padding: 20px; border: 5px solid; margin: 10px; box-sizing: content-box; } 该元素占据的空间总宽度为?

A、300px
B、320px
C、350px
D、370px

单选题 以下代码实现了一个横向导航栏,空白处应填入什么? css复制代码 nav li { float: left; margin-right: 20px; } nav::after { content: ""; display: block; ______: both; }

A、clear
B、float
C、display
D、visibility

单选题 以下哪个选择器用于鼠标悬停时的链接?

A、visited
B、link
C、hover
D、active