任务一
<p><font color="red">C1任务三</font></p><p><font color="#000000"><br></font></p>
<table border="1" cellpadding="0">
<tbody>
<tr style="background-color:pink">
<td>C1</td>
<td>见习</td></tr>
<tr><td>C4</td>
<td>专项</td></tr>
<tr style="background-color:pink"><td>C5</td>
<td>全栈</td></tr>
</tbody></table>
<button> 我要考试 </button>
任务二
扩展任务
CSS代码
*{
margin: 0;
padding: 0;
}
.out1{
float: left;
}
.out2{
float: right;
}
.in{
float: right;
}
.box{
font-size: 2em;
background-color: rgb(252,211,156);
border-style: solid;
border-color: gray;
border-width: 5px;
width: 820px;
height: 550px;
}
.box1{
background-color: rgb(197,208,142);
text-align: center;
line-height: 116px;
color: white;
margin: 10px;
height: 116px;
width: 246px;
border-style: solid;
border-color: gray;
border-width: 2px;
}
.box2{
background-color: rgb(197,208,142);
text-align: center;
line-height: 386px;
color: white;
margin: 20px 10px 10px 10px;
height: 386px;
width: 246px;
border-style: solid;
border-color: gray;
border-width: 2px;
}
.box3{
background-color: rgb(197,208,142);
text-align: center;
line-height: 196px;
color: white;
margin: 10px 10px 20px 10px;
height: 196px;
width: 526px;
border-style: solid;
border-color: gray;
border-width: 2px;
}
.box4{
float: left;
background-color: rgb(197,208,142);
text-align: center;
line-height: 301px;
color: white;
margin: 0 10px 10px 10px;
height: 306px;
width: 276px;
border-style: solid;
border-color: gray;
border-width: 2px;
}
.box5{
background-color: rgb(197,208,142);
text-align: center;
line-height: 141px;
color: white;
margin: 0px 10px 10px 10px;
height: 141px;
width: 226px;
border-style: solid;
border-color: gray;
border-width: 2px;
}
.box6{
background-color: rgb(197,208,142);
text-align: center;
line-height: 141px;
color: white;
margin: 20px 10px 10px 10px;
height: 141px;
width: 226px;
border-style: solid;
border-color: gray;
border-width: 2px;
}
.box7{
float: left;
text-align: center;
line-height: 140px;
background-color: rgb(243,164,100);
width: 180px;
height: 140px;
margin-top: 28px;
margin-left: 20px;
}
.box8{
float: right;
line-height: 140px;
background-color: rgb(243,164,100);
width: 180px;
height: 140px;
position: relative;
bottom: 100px;
right: 20px;
}
.box9{
text-align: center;
line-height: 50px;
color: white;
background-color: rgb(248,204,157);
width: 176px;
height: 136px;
margin-left: 40px;
margin-top: 290px;
border-style: solid;
border-color: gray;
border-width: 2px;
}
HTML代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>C1任务样例</title>
<link rel="stylesheet" href="../CSS/C1任务.css">
</head>
<body>
<div class="box">
<div class="out1">
<div class="box1">1</div>
<div class="box2">2</div>
</div>
<div class="out2">
<div class="box3">3<div class="box7">7</div><div class="box8">8</div></div>
<div>
<div class="box4">4</div>
<div class="in">
<div class="box5">5</div>
<div class="box6">6</div>
</div>
</div>
<div class="box9">9</div>
</div>
</div>
</body>
</html>
自测
HTML5为了使img元素可拖放,需要增加什么属性?
draggable=“true”
HTML5哪⼀个input类型可以选择⼀个⽆时区的⽇期选择器?
date
CSS盒⼦模型中的Margin、Border、Padding都是什么意思?
外边距 边框 内边距
说出⾄少五种常⻅HTML事件
窗口事件、表单事件、键盘事件、鼠标事件多媒体事件和其他事件
HTML的onblur和onfocus是哪种类型的属性?
获得焦点时触发
失去焦点时触发
怎么设置display属性的值使容器成为弹性容器?
flex
JavaScript中有多少种不同类型的循环?
for while do…while
⽤户搜索某个单词后,JavaScript⾼亮显示搜索到的单词,使⽤哪个语义化标签最合适?
使用mark标签 或者给盒子加底色