.box{width:100px;height:100px;background:#ccc},.box元素添加()样式后显示为圆形?
举一反三
- 在以下代码片段中,属于绝对定位的是() 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;}
- 在以下代码片段中,属于绝对定位的是()。 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;}
- 在jQuery中,下列关于jQuery中的css()方法的说法错误的是()。 A: 使用css()方法设置id为box元素的宽度为100px,代码为$("#box").css("width","100px") B: 使用css()方法设置id为box元素的高度为100px,代码为:$("#box").css({"height","100px"}) C: css()方法可设置元素的多个样式 D: css()方法可为元素追加类样式
- 在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;}