下面的代码中,可以设置单元格宽度的是()。
A: td{width:50px;}
B: td{height:50px;}
C: td{line-height:50px;}
D: td{font-size:50px;}
A: td{width:50px;}
B: td{height:50px;}
C: td{line-height:50px;}
D: td{font-size:50px;}
举一反三
- 想要将一个行内元素em设置高度和宽度分别为20px,50px,正确的代码是: A: em{ width:50px; height:20px; overflow:true; display:block; } B: em{ width:50px; height:20px; display:true; } C: em{ width:50px; height:20px; } D: em{ width:50px; height:20px; display:block; }
- 第一个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原点为盒子模型可见区域的左上角定点
- 外边距属性为 “上边距: 20px、下边距: 30 px 、左边距: 40 px 、右边距: 50px"正确的设置是 A: margin:20px 30px 40px 50px B: order:20px 30px 40px 50px C: margin:20px 50px 30px 40px D: margin-top:20px 30px 40px 50px
- 在以下代码片段中,属于绝对定位的是() A: #box {width:100px;height:50px;position:absolute;} B: #box (width:100px;height:50px;position:relative;} C: #box {width:100px;height:50px;position:static;} D: #box {width:100px;height:50px;}
- 在以下代码片段中,属于绝对定位的是()。 A: box {width:100px;height:50px;} B: box {width:100px;height:50px;position:absolute;} C: box {width:100px;height:50px;position:static;} D: box (width:100px;height:50px;position:relative;}