<!doctypehtml><html><head><metacharset="utf-8"><title>移动电商页面</title><styletype="text/css">/* ********* Begin ********* */body{
font-size:12px;}body,img{
padding:0;margin:0;border:0;}.all{
width:346px;height:578px;background:url(https://www.educoder.net/api/attachments/2073417) no-repeat center;margin:20px auto;padding:90px 0 0 34px;}.content{
width:277px;height:414px;overflow:scroll;/* ********* End ********* */}</style></head><body><divclass="all"><divclass="content"><imgsrc="https://www.educoder.net/api/attachments/2072741"/></div></div></body></html>
团购悬浮框页面制作
第1关:团购悬浮框页面的结构设计
<!doctypehtml><html><head><metacharset="utf-8"><title>电商团购悬浮框</title></head><body><!-- ********* Begin ********* --><ul><li>7月30日0:00开团</li><liclass="item">新品团</li><liclass="item">尝鲜团</li><liclass="item">秒杀团</li><liclass="item">清仓团</li><liclass="item">返回顶部</li></ul><!-- ********* End ********* --></body></html>
第2关:团购悬浮框页面的样式设计
<!doctypehtml><html><head><metacharset="utf-8"><title>电商团购悬浮框</title><!-- ********* Begin ********* --><style>body,ul,li{
padding:0;margin:0;list-style:none;}body{
font-size: 18px;font-family:微软雅黑;}ul{
width: 200px;height:270px;margin: 20px;border:3px solid #613e72;padding:10px;}li{
width:142px;height:40px;line-height:40px;background:url(https://www.educoder.net/api/attachments/2046898) no-repeat left center ;padding-left:40px;margin:0 auto 5px;color:#613e72;}.item{
background:#613e72 url(https://www.educoder.net/api/attachments/2046946) no-repeat 5px center ;color:#fff;}.back{
background:url(https://www.educoder.net/api/attachments/2046953) no-repeat left center ;}</style><!-- ********* End ********* --></head><body><ul><li>7月30日0:00开团</li><liclass="item">新品团</li><liclass="item">尝鲜团</li><liclass="item">秒杀团</li><liclass="item">清仓团</li><liclass="back">返回顶部</li></ul></body></html>