A: style type=”text/css”> div{font-size:12px}
B:
C: div{bgcolor:black}
D: spen{width:200px}
E: .div{height:200px}
举一反三
- 以下写法属于标签选择器的是() A: ; div{font-size:12px}; B: ; C: div{bgcolor:black}; D: ; spen{width:200px}; E: ; .div{height:200px};
- 以下写法属于标签选择器的是() A: <style type=”text/css”> div{font-size:12px}</style> B: <style type=”text/css”> C: div{bgcolor:black}</style> D: <style type=”text/css”> spen{width:200px}</style> E: <style type=”text/css”> .div{height:200px}</style>
- 中国大学MOOC: 阅读下面HTML代码,两个div水平之间的空白距离是( )。<style type="text/css"> div{float:left;width:100px;height:200px;margin:5px;}</style> ...... <div ></div> <div ></div> ......
- 在html文档中有元素<;div id="clear">;<; /div>;,现在想在<;style>;标签中为其定义宽度为200px的样式,以下哪条定义样式的语句的对的? A: B: clear{width:200px;} C: .clear{width:200px;} D: div{width:200px;} E: div{height:200px;}
- 【单选题】阅读下面HTML代码,两个div垂直之间的空白距离是()。<style type="text/css">div{width:100px;height:200px;margin:5px;}</style>......<div ></div><div ></div>...... A. 0px B. 5px C. 10px D. 15px
内容
- 0
21、对下列代码解析正确的是(_____)。 <style type="text/css"> body{ margin:0 } div{float:left; margin-left:10px; width:200px; height:200px; border:1px solid red } </style>
- 1
第一个DIV的样式style为width:150px;height:50px;margin:5px 7px 2px 3px;padding:5px;border:1px solid #000;第二个DIV的样式style为width:150px;height:50px;margin:0;padding:0;border:1px solid #000;请问第一个DIV的实际宽度为________px,原点坐标为x=_____px,y=______px;第二个DIV的原点坐标为x=_____px,y=______px原点为盒子模型可见区域的左上角定点
- 2
设置DIV宽为500像素和高为400像素的正确方法是? A: height:500 px; width:400 px; B: margin:500px; padding:400 px; C: padding:500 px;margin:400 px; D: width:500 px;height:400 px;
- 3
下面哪个属于标签选择器( ) A: style type=”text/css”> pa{bgcolor:red} B: .mv{bgcolor:green} C: D: first{bgcolor:blue} E: div{bgcolor:red}
- 4
请阅读下面的代码,根据注释中的要求填写代码。 <style type="text/css"> div{ width:200px; height:100px; font-family:”宋体” ; _____________________; /*设置字号大小为12px*/ color:red; _____________________; /*设置字体行高为16px*/ } </style>