CSS考试试题样式
.question { font-size: 16px; font-weight: bold; margin-bottom: 10px } .option { font-size: 14px; margin-bottom: 5px } .option input[type="radio"] { margin-right: 10px } .answer { font-size: 16px; font-weight: bold; margin-top: 20px }
在CSS考试中,考生需要掌握CSS的各种属性以及如何使用这些属性来实现对页面的样式修改。以下是一个CSS考试试题的样式代码。
1. 下面哪个是CSS中用于设置元素的字体大小字体的属性?
font-color
font-width
font-size
font-style
font-width
font-size
font-style
答案:c
在这个样式中,.question用于设置试题的题目样式,包括字体大小、加粗和下面的margin。.option设置选项的字体大小和下面的margin,其中input[type="radio"]用于设置单选框对应的文本,也设置了margin-right。.answer设置了答案的字体大小和上面的margin。这些样式的设置可以是页面更加清晰易读。