如何使我的图片库响应

时间:2017-01-27 15:32:18

标签: javascript html css html5 responsive-design

我最近完成了我的交互式视频库的开发。我只使用HTML和CSS。现在我在使其响应方面遇到了问题。一旦我调整浏览器大小,图像就会失效。我想图像库改变否。列根据浏览器宽度,不影响图库的功能,或悬停效果。 我的项目文件夹的链接是 - https://drive.google.com/open?id=0Bx9r_Ov1lSfAYmxDcmJCSkY1MjA

任何帮助都会非常明显。

1 个答案:

答案 0 :(得分:0)

您无法在项目中使用Bootstrap链接,并且可以删除文件中的内联样式。我已经解决了你的错误并且它完美地工作了......你可以在项目文件夹中尝试这个html文件,然后运行它......



<html>
<head>
	<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="thumb-css/style.css">
	<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">
            	            <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>
&#13;
&#13;
&#13;