本文共 862 字,大约阅读时间需要 2 分钟。
摘要:html>
html>
*{margin: 0;padding: 0;}
.normal{height: 350px;width: 350px;position: fixed;top: 30px;left: 30px;border: 1px solid #000000;}
.normal img{height: 350px;width: 350px;}
.area{height: 100px;width: 100px;background:#CCCCCC;opacity: 0.4;position: absolute;}
.bigger{height: 350px;width: 350px;border: 1px solid #000000;position: relative;top: 30px;left: 410px;overflow: hidden;}
.bigger img{height: 1150px;width:1150px;position: absolute;}
请问老师这里为啥是负值呀,有点没搞清楚哇
批改老师:灭绝师太批改时间:2019-02-28 09:28:18
老师总结:因为小框的偏移位置的起始值是左上角呀,移动的话就是向右移动
转载地址:http://twtfk.baihongyu.com/