Как исправить кнопку, которая накладывается на увеличенное изображение - PullRequest
0 голосов
/ 24 апреля 2019

я использую этот плагин: https://www.npmjs.com/package/js-image-zoom, и он отлично работает для масштабирования, но в то время как масштабирование использует перекрывающиеся кнопки на масштабировании

я использую Expressjs и JQuery и плагин, установленныйnpm

изображение

<div class="col-sm-6 col-md-8 col-lg-6">
                <!-- Product -->
                <h1> <%= productDetail.nombre %> </h1>  
                <h6 class="p-b-20"> Referencia  <%= productDetail.id %> </h6>  
                <div id ="contenedor-imagen" style="width: 400px">
                    <img src=" <%= productDetail.ruta %> "> 
                </div> 

                <script>
                        var options = {
                        width: 400,  
                        zoomWidth: 400,
                        zoomDefaultPosition: "false",
                        zoomPosition: "left",
                        opacity: 0.1,                   
                    };
                    new ImageZoom(document.getElementById("contenedor-imagen"), options); 

                        </script>
                <span>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ullam quod enim ut esse, nemo distinctio, dolorum sequi minus, quas odit magnam? Dicta tempore fugiat, natus sint eligendi est cupiditate ea.</span>

            </div>

кнопки

<div class="col-sm-6 col-md-8 col-lg-2" style="position: relative">
                <h4 class="p-b-20">Cantidad</h4>
                <div class="flex-w bo5 of-hidden w-size17">
                    <button class="btn-num-product-down color1 flex-c-m size7 bg8 eff2">
                        <i class="fs-12 fa fa-minus" aria-hidden="true"></i>
                    </button>

                    <input class="size8 m-text18 t-center num-product" type="number" name="num-product1" value="1">

                    <button class="btn-num-product-up color1 flex-c-m size7 bg8 eff2">
                        <i class="fs-12 fa fa-plus" aria-hidden="true"></i>
                    </button>
                </div>
                <div class="p-t-20" id="divAgregar" style="position: relative">
                    <button  type="button" class="btn btn-danger" id="btnAgregar" style="position: relative">
                        Agregar al Carrito
                    </button>
                </div>

            </div>

Результат Кнопка перекрытия Увеличенная область

спасибо за любые предложения!

...