html——制作音乐盒

时间:2021-02-01 05:03:15
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*{padding:0;margin:0}
.all{
width:500px;
margin:20px auto;
}
.out{float:left;}
.inner img{
width:200px;
height:120px;
border:1px solid #0FF;
padding:4px;
}
.text{
font-size:14px;
color:#F3C;
height:auto;
line-height:normal;
}
.font12{font-size:12px}
.line{color:#FC0;
padding:0 5px}
</style>
</head>


<body>
<div class="all">
<div class="out">
    <div class="inner">
        <img src="2.jpg"/>
        </div>
        <p class="text">
        船只之歌<span class="line">-</span><span class="front12">学工部</span>
        </p>
    </div>
    <div class="out">
    <div class="inner">
        <img src="2.jpg"/>
        </div>
        <p class="text">
        青春误会<span class="line">-</span><span class="front12">学员部</span>
        </p>
    </div>
</div>
</body>

</html>


html——制作音乐盒