• 2021-04-14 问题

    【多选题】已知代码如下 class Rectangle { private int width, height; public void setSize(int width, int height) { this.width = width; this.height = height; } } 下面哪些代码重载 setSize 方法 (10.0分) A. protected void setSize(int width, int height) { this(width, height) } B. public void setSize(int width, float height) { this.width = width; this.height = (int)height; } C. protected void setSize(int width) { this.width = width; } D. public void setSize(int height, int width) { this.width = width; this.height = height; }

    【多选题】已知代码如下 class Rectangle { private int width, height; public void setSize(int width, int height) { this.width = width; this.height = height; } } 下面哪些代码重载 setSize 方法 (10.0分) A. protected void setSize(int width, int height) { this(width, height) } B. public void setSize(int width, float height) { this.width = width; this.height = (int)height; } C. protected void setSize(int width) { this.width = width; } D. public void setSize(int height, int width) { this.width = width; this.height = height; }

  • 2022-06-07 问题

    以下id选择器书写正确的是() A: *div{width:100%;} B: text{width;100%;} C: #div{width:100%;} D: #class{width:100%;}

    以下id选择器书写正确的是() A: *div{width:100%;} B: text{width;100%;} C: #div{width:100%;} D: #class{width:100%;}

  • 2022-06-01 问题

    下列哪些是正确的声明变量的方式? A: int length; int width; B: int length, width; C: int length; width; D: int length, int width;

    下列哪些是正确的声明变量的方式? A: int length; int width; B: int length, width; C: int length; width; D: int length, int width;

  • 2021-04-14 问题

    @keyframes myfirst{ 0%{width:20px;} 100%{width:300px;} } 和 @keyframes myfirst{ from{width:20px;} to{width:300px;} } 以上两段代码的涵义和作用是一样的吗?

    @keyframes myfirst{ 0%{width:20px;} 100%{width:300px;} } 和 @keyframes myfirst{ from{width:20px;} to{width:300px;} } 以上两段代码的涵义和作用是一样的吗?

  • 2022-06-11 问题

    响应式布局中处理图片缩放的最佳方法是( )。 A: img { width: auto; max-width: 100%; } B: img{width:100%} C: img{width:auto;} D: img{width:npx}

    响应式布局中处理图片缩放的最佳方法是( )。 A: img { width: auto; max-width: 100%; } B: img{width:100%} C: img{width:auto;} D: img{width:npx}

  • 2022-06-03 问题

    页面中的div元素的width属性如何设置,才能在页面大小发生变化时,div元素距离页面两边都有10%的外边距? A: width : 100% ; B: width : 90% ; C: width : 80% ; D: width : 50% ;

    页面中的div元素的width属性如何设置,才能在页面大小发生变化时,div元素距离页面两边都有10%的外边距? A: width : 100% ; B: width : 90% ; C: width : 80% ; D: width : 50% ;

  • 2021-04-14 问题

    【单选题】inline类型的元素()。 A. height能设定、 width不能设定 B. height不能设定、 width能设定 C. height、 width都能设定 D. height、 width都不能设定

    【单选题】inline类型的元素()。 A. height能设定、 width不能设定 B. height不能设定、 width能设定 C. height、 width都能设定 D. height、 width都不能设定

  • 2022-06-03 问题

    The new bridge is ______ the one built last year. A: three times width of B: three times that of C: three times the width D: three times the width of

    The new bridge is ______ the one built last year. A: three times width of B: three times that of C: three times the width D: three times the width of

  • 2022-10-28 问题

    如何给width属性添加这样的一个过渡效果:立马开始,持续2s的线性匀速式过渡? A: transition: width 2s; B: transition: width 2s linear; C: transition: width 2s linear 0s; D: transition: width 0s linear 2s;

    如何给width属性添加这样的一个过渡效果:立马开始,持续2s的线性匀速式过渡? A: transition: width 2s; B: transition: width 2s linear; C: transition: width 2s linear 0s; D: transition: width 0s linear 2s;

  • 2022-05-28 问题

    以下代码片断中,属于相对定位的是()。 A: B: {width:100px;position:relative} C: D: {width:100px;position:sastic} E: F: {width:100px;} G: H: {width:100px;position:absolute}

    以下代码片断中,属于相对定位的是()。 A: B: {width:100px;position:relative} C: D: {width:100px;position:sastic} E: F: {width:100px;} G: H: {width:100px;position:absolute}

  • 1 2 3 4 5 6 7 8 9 10