题目
A.<style type="text/css"> p{color:red} </style>
B.<style type="text/css"> #firstp {color:red} </style>
C.<style type="text/css"> .firstp {color:red} </style>
D.<style type="text/css"> p.firstp {color:red} </style>
第1题
A.<style type="text/css"> p{color:red} </style>
B.<style type="text/css"> #firstp {color:red} </style>
C.<style type="text/css"> .firstp {color:red} </style>
D.<style type="text/css"> p.firstp {color:red} </style>
第2题
A.层中引用类样式style1写法为<div class=“style1”>
B.重定义段落p标签样式,定义完不需要引用。
C.一个ID样式可以在一个网页中同时被多个不同的html元素引用
D.ID样式在一个网页中只能被一个html标签元素引用。
第3题
第4题
第5题
第6题
A.层中引用类样式style1写法为<div class=”style1”>
B.重定义标签样式h1,定义完不需要引用
C.同一个类样式可以在一个网页中多次被引用
D.ID样式在一个网页中只能被一个html元素引用
第7题
A.CSS不具有继承性
B.它允许样式不仅应用于某个特定HTML标签,而且应用于其后代
C.它允许样式不仅应用于某个特定HTML标签,而且应用于其父元素
D.一个标签嵌套另一个标签,两个标签中都有文字,会显示为一种颜色
第10题
A.此段代码是一个HTML标记选择器
B.{}部分的样式属性将作为h1元素的默认样式
C.“red”和“宋体”都是属性值
D.选择器定义的样式内容是背景颜色为红色,字体为宋体
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!