html遮罩层怎么做,CSS中怎么让一个div成为遮罩?

你自己看下,先考虑下布局

关注ReSur的微信

body {margin: 0;background-color: #FAFAFA;}

.block {position: relative;margin-top: 275px;width: 100%;height: 195px;background: #00C389;}

.draw {position: relative;margin: 0 auto;height: 391px;height: 579px;background: url('http://1992s.com/images/wechat-bg.png') no-repeat;}

.draw_box{margin: 134px 0 0 409px; background:#000; width:219px; height:391px; float:left; overflow:hidden; position:relative;}

.phone {position: absolute;top: 137px;left:0;width: 219px;height: 391px;text-align: center;background: white;transition: top 1s;-webkit-transition: top 1s;-moz-transition: top 1s;-o-transition: top 1s;}

.phone:hover {top: 0px;}

.qrcode {position: relative;top: 87px;margin: 0 auto;width: 165px;height: 165px;background: url('http://1992s.com/images/wechat.png') no-repeat;}

.text {position: relative;top: 140px;font: 12px "Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif,"Microsoft YaHei","微软雅黑";}

或在“查找公众号”
中搜索“ReSur”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值