• 2022-05-28
    {html,body { margin: 0; padding: 0; width: 100%; height: 100%; }代表需要撑满整个浏览器}
  • 举一反三

    内容

    • 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,其实际宽度是多少: