单选题 实现点击文本也能控制复选框,以下设置正确的是( )
A、
<input type="checkbox" name="music" /><label for="music">音乐</label>
B、
<input type="checkbox" id="music" /><label for="music">音乐</label>
C、
<input type="checkbox" name="music" /><label id="music">音乐</label>
D、
<input type="checkbox" id="music" /><label name="music">音乐</label>
单选题 以下这段代码的作用是( )
@media screen and (min-width:960px) and (max-width:1200px){
body{
background:yellow;
}
}
A、是当宽度大于960px小于1200px的时候body的背景色为yellow
B、是当宽度大于960px的时候body的背景色为yellow
C、以上写法都不正确
D、是当宽度小于1200px的时候body的背景色为yellow
单选题 <div class="icon"></div>实现向右的红色三角形,样式实现正确的是( )
A、
icon{width:0; height:0; overflow:hidden; border:5px solid transparent; border-left-color:#f00; }
B、
icon{width:0; height:0; overflow:hidden; border:5px solid #f00; border-left-color:transparent;}
C、
icon{width:0; height:0; overflow:hidden; border:5px solid transparent; border-right-color:#f00;}
D、
icon{width:0; height:0; overflow:hidden; border:5px solid #f00; border-right-color:transparent;}
单选题 哪一个标记用于使HTML文档中表格里的单元格在同行进行合并?( )
A、cellspacing
B、cellpadding
C、rowspan
D、colspan
单选题 在当前页面index.html中插入与index.html处于同一级的img文件夹下的logo.jpg,正确的导入写法是( )
A、
<img src="img/logo.jpg">
B、
<img href="img/logo.jpg">
C、
<img src="../img/logo.jpg">
D、
<img href="../img/logo.jpg">
单选题 flex-grow的作用是( )
A、弹性盒子元素对齐方式
B、弹性盒子元素的排列方式
C、弹性盒子元素显示次序
D、弹性盒子元素如何分配剩余空间
单选题 设置主轴方向的弹性盒子元素的对齐方式可以使用( )属性实现
A、align-content
B、justify-content
C、align-self
D、align-items
单选题 以下能生效的样式选项是 ( )
<style>
p{
color:yellow;
}
.classB{
color:red;
}
.classA{
color:blue;
}
</style>
<p class='classB classA'> 123 </p>
A、yellow
B、red
C、blue
D、black