制作一个简易名片,简单了解html标签的使用和css样式的布局
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>sweet名片</title>
</head>
<style type="text/css">
body{
background-image: url("2.jpg");
}
div{
width: 400px;
height: 300px;
background-color: white;
margin:260px auto;
border-radius: 10px;
}
img{
width: 150px;
height: 40px;
margin: 20px 15px;
}
h1{
margin: 0px 15px;
font-family: 宋体;
}
.png{
width: 150px;
height: 150px;
border-radius:80px;
margin:-50px 0px 20px 210px;
}
p{
margin:-90px 100px 20px 20px;
}
</style>
<body>
<div>
<img src="1.png">
<h1>sweet</h1>
<img class="png" src="3.png">
<p>
学生<br><br>
手机:10086<br>
QQ:1234567890<br>
电子邮箱:[email protected]<br>
</p>
</div>
</body>
</html>