举一反三
- ()是设置HTML页面中所有元素内外边距为0的通用样式。A.*{margin:0;padding:0;}B.*{margin:0px;padding:0px;}C.body{margin:0;padding:0;}D.p{margin:0;padding:0;}
- 当浮动框架的height=100%无效时,最简单的处理方法是()。 A: 设置iframe的height=100% B: 设置html的height=100% C: 设置body的height=100% D: 设置html、body和iframe的height=100%
- 中国大学MOOC: 判断以下代码中如何设置div1的样式,可以使div1相对于浏览器,(相对于以前位置右上角)向左移动100px,向下移动50px。<style type=text/css>*{ margin:0; padding:0;}.div1{ width:200px; height:200px; border:2px red solid; }</style><body><div class=div1> </div></body>
- *{margin:0;padding:0}用于清除浏览器的默认边距
- 下列草图用旋转特征工具不能生成实体的是()。1、<img width="50" height="100" src="http://image.zhihuishu.com/zhs/onlineexam/ueditor/201908/0c0ba8db9acf4933a0e5df79d9dddaea.png" border="0" vspace="0 2、<img width="60" height="100" src="http://image.zhihuishu.com/zhs/onlineexam/ueditor/201908/341180a27efb4211b512ab4269ae865a.png" border="0" vspace="0 3、<img width="80" height="100" src="http://image.zhihuishu.com/zhs/onlineexam/ueditor/201908/97007edcda2644d78d09b1089aa9af7a.png" border="0" vspace="0 4、<img width="80" height="100" src="http://image.zhihuishu.com/zhs/onlineexam/ueditor/201908/6a56890b40874f78a8df75419e014d27.png" border="0" vspace="0
内容
- 0
在CSS样式表中给P标记定义边框样式可以使用的代码为: A: .box{width:250px;height:50px;border:1px red;background:pink;padding:30px;margin:20px;} B: .box{width:250px;height:50px;border:5pxdashedred;background:pink;padding:10px;margin:10px;} C: .box{width:250px;height:50px;border:15pxnonered;background:blue;padding:30px;margin:20px;} D: .box{width:250px;height:50px;border-color:red;background:yellow;padding:30px;margin:20px;}
- 1
【判断题】重置浏览器的默认样式时,“margin:0; padding:0;”用于清除浏览器默认的边距样式
- 2
以下关于width属性和height属性语法格式正确的是()。 A: width:15; B: width:60px; C: height:100%; D: height:100;
- 3
智慧职教: aa.jsp文件如下: <%!static int i=0; int j=0; %> <html> <body> <% for(;i++<2;) { out.print(j++);out.print(“”);} %> </body> </html> 有两个客户依次使用浏览器浏览aa.jsp,且每个客户只浏览aa.jsp一次,那么第二个客户看到浏览器显示
- 4
div:width:300px,height:300px,border:50px,padding:50px,margin:50px,其实际宽度是多少: