【发布时间】:2013-09-17 03:59:27
【问题描述】:
滚动页面时webkit-mask-image 掩码会移动
body{
height:1500px;
}
#wrapper {
margin-top:250px;
width: 300px;
height: 300px;
border-radius: 100px;
overflow: hidden;
position: absolute; /* this breaks the overflow:hidden in Chrome/Opera */
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); /* this fixes the overflow:hidden in Chrome/Opera */
}
#map1 {
width: 300px;
height: 300px;
}
如何使 webkit-mask-image 静态化?谢谢
【问题讨论】:
-
你有想过这个吗?
-
在这里查看我的答案stackoverflow.com/a/18836164/1477388
标签: css google-maps-api-3