目的:结合fireworks将图片转换为html界面
图片:
素材:
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.box{
/*定义页面整体宽高*/
width: 208px;
height: 384px;
/*加边框*/
border: 1px solid #cecece;
/*将页面相对于整体Body居中*/
margin: 10px auto;
}
.box .title{
height: 25px;
padding-left: 9px;
background: #ECEDEE;
font: 14px/25px 微软雅黑;
}
.box .pic{
width: 180px;
height: 180px;
border: 1px solid #cecece;
/*定了3个像素的位置那么,少一个没关系*/
margin: 10px 0 11px 13px;
}
.box .blink{
height: 27px;
text-align: center;
}
.box .blink img{
margin-left:10px;
}
.box .weibo{
/*weibo之一div块高度为33像素,而不是微博这个按钮高度为33像素*/
height: 33px;
text-align: center;
border-bottom: 1px dotted #D1D1D1;
/*weibo块下边距离另外一个div块20像素*/
margin-bottom: 20px;
}
.box .weibo input{
width: 68px;
height: 23px;
background: #EEEEF2 url("images/vb.jpg") no-repeat;
}
.box .friend{
text-align: center;
}
.box .friend input{
width: 67px;
height: 21px;
margin: 0 5px 5px 0;
}
</style>
</head>
<body>
<div class="box">
<div class="title">
个人资料
</div>
<div class="pic">
<img src="images/1.jpg" alt="">
</div>
<div class="blink">
V闪闪<img src="images/v.jpg" alt="">
</div>
<div class="weibo"><input type="button" value="微博"></div>
<div class="friend">
<input type="button" value="加好友"><input type="button" value="发纸条"><input type="button" value="加好友"><input type="button" value="加好友">
</div>
</div>
</body>
</html>