js+css布局实现电商鞋子颜色样式与尺寸选择代码
代码语言:html
所属分类:电商
代码描述:js+css布局实现电商鞋子颜色样式与尺寸选择代码
代码标签: js css 布局 电商 鞋子 颜色 样式 尺寸 选择 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> *{ padding: 0; margin: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background: url('//repo.bfw.wiki/bfwrepo/image/67187d911dc62.png'); background-size: cover; background-attachment: fixed; } .container{ position: relative; width: 400px; height: 400px; /* background-color: #111; */ } .container .thumb{ position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); } .container .thumb li{ list-style: none; width: 100px; height: 100px; /* background-color: aqua; */ margin: 10px 0; display: flex; justify-content: center; align-items: center; background: rgba(255,255,255,0.2); box-shadow: 0 15px 25px rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.25); border-top: 1px solid rgba(255,255,255,0.5); border-left: 1px solid rgba(255,255,255,0.5); border-radius: 20px; backdrop-filter: blur(5px); } .container .thumb li img{ width: 90%; transition: 0.5s; } .container .thumb li img:hover{ transform: rotate(-30deg) scale(1.2); } .container .imgBox{ position: absolute; top: 0; right: 0; width: 350px; height: 100%; /* background-color: aqua; */ background: rgba(255,255,255,0.2); box-shadow: 0 15px 25px rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.25); border-top: 1px solid rgba(255,255,255,0.5); border-left: 1px solid rgba(255,255,255,0.5); border-radius: 20px; backdrop-filter: blur(5px); padding: 60px 20px; display: flex; flex-direction: column; align-items: center; } .container .imgBox h2{ color: #fff; letter-spacing: 1px; } .container .imgBox img{ width: 80%; transition: 0.25s; } .container .imgBox img:hover{ transform: scale(1.25) rotate(-15deg); } .container .imgBox .size{ display: flex; justify-content: center; align-items: center; margin-top: 75px; } .container .imgBox .size span{ color: #fff; font-size: 1.2em; letter-spacin.........完整代码请登录后点击上方下载按钮下载查看
网友评论0