2017-01-27 2 views
0

Недавно я закончил разработку своей интерактивной видео галереи. Я использовал только HTML и CSS. Теперь у меня проблемы с тем, чтобы сделать его отзывчивым. Как только я изменяю размер моего браузера, изображения выходят из кадра. Я хочу, чтобы галерея изображений не изменилась. столбцов в соответствии с шириной браузера, не затрагивая особенности галереи или эффекты зависания. Ссылка на мою папку проекта - https://drive.google.com/open?id=0Bx9r_Ov1lSfAYmxDcmJCSkY1MjAКак сделать мою галерею изображений отзывчивой

Любая помощь будет действительно заметна.

+0

Введите код, то, что вы пробовали, какие идеи у вас были ... – Armin

+0

вместо этого создайте плункер. – Aravind

+0

Не смотрел проект - может ли он использовать существующие фреймворки, такие как magnific-popup и jquery? jQuery помогает вам управлять загрузкой изображений, а magnific-popup - это идеальная галерея IMHO. – Gunnar

ответ

0

Вы не можете использовать ссылку Bootstrap в своем проекте, и вы можете удалить встроенный стиль в свой файл. Я решил свою ошибку, и это работает отлично ... Вы можете попробовать этот HTML файл в папке проекта, то запустить его ...

<html> 
 
<head> 
 
\t <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet"> 
 
\t <link rel="stylesheet" type="text/css" href="thumb-css/style.css"> 
 
\t <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> 
 
</head> 
 
<body> 
 
<div class="isotope-wrap"> 
 
    <div class="col-lg-12 offset-top-34"> 
 
     <div data-isotope-layout="fitRows" data-isotope-group="gallery" class="isotope isotope--loaded" style="position: relative; height: 2100px;"> 
 
      <div class="row"> 
 
       <div data-filter="All" class="col-xs-12 col-sm-6 col-lg-4 isotope-item"> 
 
        <div class="inset-xl-left-20 inset-xl-right-20"> 
 
         <a class="thumbnail-classic" href="index-variant-2.html" target="_blank"> 
 
      \t    <figure> 
 
           <img class="img-responsive" src="images/intense-570x428.jpg" alt=""> 
 
           <figcaption class="thumbnail-classic-caption text-center"> 
 
            <h4 class="thumbnail-classic-title text-light" style="font-family: 'Montserrat', sans-serif; color: #212121;text-transform: uppercase; text-align: center; font-weight: 100">Intense</h4> 
 
            <p class="thumbnail-classic-desc text-bold veil reveal-xs-block" style="font-family: 'Montserrat', sans-serif;text-transform: uppercase;font-weight: 100;text-align: center;">Feel the power of future</p> 
 
           </figcaption> 
 
          </figure> 
 
         </a> 
 
        </div> 
 
       </div> 
 
       <div data-filter="All" class="col-xs-12 col-sm-6 col-lg-4 isotope-item" > 
 
        <div class="inset-xl-left-20 inset-xl-right-20"> 
 
         <a class="thumbnail-classic" href="index-variant-2.html" target="_blank"> 
 
          <figure> 
 
           <img class="img-responsive" src="images/intense-570x428.jpg" alt=""> 
 
           <figcaption class="thumbnail-classic-caption text-center"> 
 
            <h4 class="thumbnail-classic-title text-light" style="font-family: 'Montserrat', sans-serif; color: #212121;text-transform: uppercase; text-align: center; font-weight: 100">Intense</h4> 
 
            <p class="thumbnail-classic-desc text-bold veil reveal-xs-block" style="font-family: 'Montserrat', sans-serif;text-transform: uppercase;font-weight: 100;text-align: center;">Feel the power of future</p> 
 
           </figcaption> 
 
          </figure> 
 
         </a> 
 
        </div> 
 
       </div> 
 
       <div data-filter="All" class="col-xs-12 col-sm-6 col-lg-4 isotope-item" > 
 
        <div class="inset-xl-left-20 inset-xl-right-20"> 
 
         <a class="thumbnail-classic" href="index-variant-2.html" target="_blank"> 
 
          <figure> 
 
           <img class="img-responsive" src="images/intense-570x428.jpg" alt=""> 
 
           <figcaption class="thumbnail-classic-caption text-center"> 
 
            <h4 class="thumbnail-classic-title text-light" style="font-family: 'Montserrat', sans-serif; color: #212121;text-transform: uppercase; text-align: center; font-weight: 100">Intense</h4> 
 
            <p class="thumbnail-classic-desc text-bold veil reveal-xs-block" style="font-family: 'Montserrat', sans-serif;text-transform: uppercase;font-weight: 100;text-align: center;">Feel the power of future</p> 
 
           </figcaption> 
 
          </figure> 
 
         </a> 
 
        </div> 
 
       </div> 
 
       <div data-filter="All" class="col-xs-12 col-sm-6 col-lg-4 isotope-item" > 
 
        <div class="inset-xl-left-20 inset-xl-right-20"> 
 
         <a class="thumbnail-classic" href="index-variant-2.html" target="_blank"> 
 
          <figure> 
 
           <img class="img-responsive" src="images/intense-570x428.jpg" alt=""> 
 
           <figcaption class="thumbnail-classic-caption text-center"> 
 
            <h4 class="thumbnail-classic-title text-light" style="font-family: 'Montserrat', sans-serif; color: #212121;text-transform: uppercase; text-align: center; font-weight: 100">Intense</h4> 
 
            <p class="thumbnail-classic-desc text-bold veil reveal-xs-block" style="font-family: 'Montserrat', sans-serif;text-transform: uppercase;font-weight: 100;text-align: center;">Feel the power of future</p> 
 
           </figcaption> 
 
          </figure> 
 
         </a> 
 
        </div> 
 
       </div> 
 
       <div data-filter="All" class="col-xs-12 col-sm-6 col-lg-4 isotope-item" > 
 
        <div class="inset-xl-left-20 inset-xl-right-20"> 
 
         <a class="thumbnail-classic" href="index-variant-2.html" target="_blank"> 
 
          <figure> 
 
           <img class="img-responsive" src="images/intense-570x428.jpg" alt=""> 
 
           <figcaption class="thumbnail-classic-caption text-center"> 
 
            <h4 class="thumbnail-classic-title text-light" style="font-family: 'Montserrat', sans-serif; color: #212121;text-transform: uppercase; text-align: center; font-weight: 100">Intense</h4> 
 
            <p class="thumbnail-classic-desc text-bold veil reveal-xs-block" style="font-family: 'Montserrat', sans-serif;text-transform: uppercase;font-weight: 100;text-align: center;">Feel the power of future</p> 
 
           </figcaption> 
 
          </figure> 
 
         </a> 
 
        </div> 
 
       </div> 
 
       <div data-filter="All" class="col-xs-12 col-sm-6 col-lg-4 isotope-item" > 
 
        <div class="inset-xl-left-20 inset-xl-right-20"> 
 
         <a class="thumbnail-classic" href="index-variant-2.html" target="_blank"> 
 
          <figure> 
 
           <img class="img-responsive" src="images/intense-570x428.jpg" alt=""> 
 
           <figcaption class="thumbnail-classic-caption text-center"> 
 
            <h4 class="thumbnail-classic-title text-light" style="font-family: 'Montserrat', sans-serif; color: #212121;text-transform: uppercase; text-align: center; font-weight: 100">Intense</h4> 
 
            <p class="thumbnail-classic-desc text-bold veil reveal-xs-block" style="font-family: 'Montserrat', sans-serif;text-transform: uppercase;font-weight: 100;text-align: center;">Feel the power of future</p> 
 
           </figcaption> 
 
          </figure> 
 
         </a> 
 
        </div> 
 
       </div> 
 
      </div> 
 
     </div> 
 
    </div> 
 
</div> 
 
</body> 
 
</html>

+0

Большое спасибо, он отлично работает. Но расстояние между этими двумя текстами исчезло, но не так, как раньше. –