下面哪一个方法不可以设置匹配元素的高度?
A: $(this).height(200);
B: $(this).css("height",200);
C: this.style.height="200px";
D: this.styleHeight=200;
A: $(this).height(200);
B: $(this).css("height",200);
C: this.style.height="200px";
D: this.styleHeight=200;
举一反三
- height的属性值可以是() A: 200-px B: 200 C: 200px D: auto
- HTML5画布API中创建一个宽度为200px、高度为50px的画布,以下哪句代码正确?( )。 A: <;canvas id=”myCanvas” w=”200” h=”50”>;<;/canvas>; B: <;canvas id=”myCanvas” w=”200px” h=”50px”>;<;/canvas>; C: <;canvas id=”myCanvas” width=”200” height=”50”>;<;/canvas>; D: <;canvas id=”myCanvas” width=”200px” height=”50px”>;<;/canvas>;
- 定义一个宽度为200px,高度为300px的盒子,代码正确的是? A: width=200px;height=300px; B: width:200px;height:300px; C: width=300px;height=400px; D: width:300px;height:400px;
- 白先,第一步如何走才能利用牵制战术得子?[imgstyle="WIDTH:200...h="200"height="200">
- 在网页中有一个id为content的div,下面( )正确设置它的宽度为200像素,高度为100像素,并且向左浮动。 A: #content{width:200px;height:100px;clear:left;} B: #content{width:200px;height:100px;float:left;} C: #content{width:100px;height:200px;clear:left;} D: #content{width:100px;height:200px;float:left;}