js+css模仿淘宝电商网站商品评论图片点击放大缩小效果代码
代码语言:html
所属分类:图片放大
代码描述:js+css模仿淘宝电商网站商品评论图片点击放大缩小效果代码
代码标签: 电商 网站 商品 评论 图片 点击 放大 缩小 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <style> * { padding: 0; margin: 0; font-style: normal; font-family: 'siyuan','黑体' } dd,dl,dt,em,i,p,textarea,a,div { padding: 0; margin: 0; } a { text-decoration: none; color: #404040 } img { border: 0; } ul,li { padding: 0; margin: 0; list-style: none; } .pltop { width: 800px; margin: 10px auto 0px auto; background: #EFEFEF; border: 1px #c8c8c8 solid; height: 24px; line-height: 24px; font-size: 14px; padding: 5px 10px; } .pinln { width: 800px; border-bottom: 1px #e3e3e3 solid; margin: 10px auto; display: flex; justify-content: space-between; align-items: center } .pinln .xinx { width: 530px; } .pinln .xinx .text { font-size: 14px; width: 100% } .pinln .xinx .time { font-size: 14px; color: #999 } .pinln .fenlei,.pinln .name { width: 135px; font-size: 14px; } .pinln .fenlei span,.pinln .name span { color: #999 } .pinln .name tt { display: block; color: #C09459 } /*图片评价*/ .tm-m-photos,.tm-m-photos-thumb { zoom: 1; } /*评论小图片*/ .tm-m-photos-thumb { margin: 10px 0; list-style-type: none; height: 45px } .tm-m-photos-thumb li { float: left; border: 2px solid #f2f2f2; padding: 2px; margin-right: 8px; position: relative; transition: border-color .2s ease-out } .tm-m-photos-thumb .tm-current { border: 2px solid #f23d6a; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -o-border-radius: 2px; cursor: auto } /*选中图片后下面的箭头*/ .tm-photos-arrow { width: 0; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0