单项选择题
CSS 样式,怎样定义一个类“myclass”,将元素的宽度设为640px,高度设为480px ,外边距为30px?()
A.class.myclass {width:640px;height:480px;margin:30px;}
B.myclass.class {width:640px;height:480px;padding:30px;}
C.myclass {width:640px;height:480px;margin:30px;}
D.myclass {width:640px;height:480px;padding:30px;}
点击查看答案&解析
相关考题
-
单项选择题
CSS 样式,下面哪一个可以将一个或多个图片设为元素背景?()
A.background-image
B.bgimage
C.background-img
D.image-bg -
单项选择题
下面哪一个CSS声明将创建粗体文本?()
A.{font-weight:bold}
B.{text:bold;}
C.{text-weight:bold;}
D.{font:bold;} -
单项选择题
除了<b>,其他显示粗体文字的方法是什么?()
A.< dark>
B.< fat>
C.< strong>
D.< big>
