a_阿怪
2016-07-21 15:59
* {
margin: 0;
padding: 0;
border: none;
font-size: 1.5625vw;
font-family: "microsoft Yahei";
}
#music {
position: fixed;
top: 3vh;
right: 4vm;
z-index: 5;
width: 15vw;
height: 15vw;
border: 4px solid #ef1639;
border-radius: 50%;
background: #fff;
}
#music > img:first-of-type {
position: absolute;
top: 24%;
right: 2.5%;
width: 28.421%;
}
#music > img:last-of-type {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 79%;
}
同问???
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>慕课贺春</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="music">
<img src="image/music_pointer.png">
<img src="image/music_disc.png">
</div>
<div id="page1">
<div></div>
<div>点击屏幕<br>开启好运2016</div>
<div></div>
<div>2016年慕课网新年特献</div>
</div>
<div id="page2">
<div></div>
<div></div>
<div></div>
</div>
<div id="page3">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>
html 代码也贴出来
HTML5+CSS3实现春节贺卡
110034 学习 · 450 问题
相似问题