HTML 代码
<!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>
<link href="圆形.css" rel="stylesheet"/>
<!--<style>
.div{
width:400px;
height:400px;
border-radius:400px;
margin:0 auto;
text-align:center;
background-color:#CF0;
line-height:400px;
box-shadow:5px 4px 5px #FF0000;
background-color:#CF0;
font-size:20px;
text-shadow:20px 10px 1px #FF00FF;}
</style>-->
</head>
<body>
<!--<div class="div"></div>
<div>
<video src="../../movie.mp4" controls="controls" autoplay="autoplay" loop="loop"></video>
<audio src="木槿 - 带你去旅行.mp3" autoplay="true" controls="controls" ></audio>
</div>-->
<div class="div">
<div class="divleft">
<div id="d1">Blue App Template</div>
<div id="d2">
<p>One page Responsive HTML5 parallax </p>
<p>business landing page</p>
</div>
<div id="d3">
<p> consectetur adipisicing elit. Similique autem,</p>
<p> atque in voluptatibus repellat nostrum iusto architecto vel placeat</p>
<p> numquam omnis assumenda.</p>
</div>
<div id="d4"></div>
</div>
<div class="rightdiv"></div>
</div>
</body>
</html>
Css 代码
@charset "utf-8";
/* CSS Document */
.div{
width:1200px;
height:700px;
background-image:url(bg.jpg);
}
.rightdiv{
width:300px;
height:630px;
background:url(phone.png);
float:right;
margin-top:20px;}
.rightdiv:hover{
transform:skew(0,25deg);}
.divleft{
width:700px;
height:700px;
float:left;
}
#d1{
width:500px;
height:40px;
text-align:center;
margin-top:100px;
font-weight:900px;
font-size:36px;
color:#FFF;}
#d1:hover{
transform:scale(1,2);
color:#F00;}
#d2{
width:500px;
height:40px;
font-size:18px;
color:#FFF;
margin-left:80px;
}
#d2:hover{
transform:rotate(360deg);}
#d3{
width:600px;
height:40px;
font-size:18px;
margin-top:50px;
margin-left:80px;
color:#FFF; }
#d4{
width:280px;
margin-left:80px;
height:70px;
margin-top:100px;
background-image:url(003.png);
}
#d4:hover{
background-image:url(003.png);
background-image:url(001.png);
}