我們正在構建一款產品生成器,該應用只允許我們更改css而沒有其他任何東西。需要div內的預覽圖像放大懸停並可從一角到另一角滾動,以向客戶展示產品的所有細節。我已經添加了CSS來使其在懸停時擴大,但無法滾動。任何幫助將不勝感激。需要使用div來縮放尺寸,並且使用css而不使用javascript懸停滾動
.shappify_product_builder .option_image .spritespin-stage {
width: 500px !important;
height: 500px !important;
background-size: 100% !important;
margin-left: 40px;
}
.spritespin-stage { transition: all .2s ease-in-out; }
.spritespin-stage:hover { transform: scale(2); overflow: auto; }
以下是html。我需要與.spritespin階段的div中的圖像放大並可滾動。
<div id="option_image" class="rotationViewer option_image spritespin-instance" style="max-height: 544px; -webkit-user-select: none; overflow: hidden; position: relative; width: 3600px; height: 3600px;" unselectable="on">
<div class="spritespin-stage" style="width: 3600px; height: 3600px; top: 0px; left: 0px; position: absolute; display: block; background-image: url("//www.shappify-cdn.com/images/78432/86058914/001_first-screen.png"); background-size: 500px 500px; background-position: 0px 0px; background-repeat: no-repeat;"></div>
<div class="spritespin-preload" style="width: 3600px; height: 3600px; top: 0px; left: 0px; position: absolute; display: none;"></div>
</div>
你有這個例子的HTML? – mhatch