admin 管理员组文章数量: 1184232
效果图如下:
下面是html、css、js整合在一起的代码:
<!doctype html><html><head><meta charset="utf-8"><title>Document</title></head><style>.middle{
width:400px;
height:400px;
border:1px solid #000;
position:relative;}.middle>img{
width:400px;
height:400px;}.small{
width:400px;
height:100px;
display: flex;
justify-content: flex-start;
align-items: center;}.small img{
border:1px solid #0f0;
width:50px;
height:50px;
margin:05px;}.small img.active{
border-color:red;}.shade{
width:100px;
height:100px;
background:rgba(255,255,0,0.5);
position:absolute;
left:0;
top:0;
display:none;}.big{
width:400px;
height:400px;
position: absolute;
left:105%;
top:0;
overflow:hidden;
display:none;}.big>img{
width:1600px;
height:1600px;
position:absolute;
left:0;
top:0;}.box{
margin:50px;}.shade:hover{
cursor:move;版权声明:本文标题:告别模糊!教你使用JavaScript将淘宝购物车图片变大,还附赠Flash中心技巧与Adobe Flash Player教程! 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1771506973a3545390.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论