0

我找到了这个我真正爱上的主题。

启动引导模板

我想用这个主题制作我的 Portfolio 网站,但这里是我希望它实现的一些更改。

当您单击这些缩略图中的任何一个时,其他图像就会弹出,这是您希望它展示的主要图像。我希望该图像很大,可能是1280 像素并且溢出自动或可滚动

我给了父div溢出属性auto,但它没有用。然后,我改为滚动,仍然无法正常工作

这是HTML:

<section class="no-padding" id="portfolio">
    <div class="container-fluid">
        <div class="row no-gutter popup-gallery">
            <div class="col-lg-8 col-lg-offset-2 text-center portfolio_text_padding">
                <h2 class="section-heading">Portfolio</h2>
                <hr class="light color">
                <p class="text-faded portfolio">
                    Portfolio time another word it is time to showcase the work.
                </p>
            </div>
            <div class="col-lg-4 col-sm-6">
                <a href="img/portfolio/bkg.png" class="portfolio-box" >
                    <img src="img/portfolio/thumbnails/1.jpg" class="img-responsive" alt="">
                    <div class="portfolio-box-caption">
                        <div class="portfolio-box-caption-content">
                            <div class="project-category text-faded">
                                Category
                            </div>
                            <div class="project-name">
                                Project Name
                            </div>
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>
</section>

所以我要放在这些缩略图中的图像是 1400 像素 x 2000 像素,我从behance得到这个想法

太感谢了。

4

1 回答 1

0

https://css-tricks.com/almanac/properties/o/overflow/

在这个小提琴中你可以试一试

http://jsfiddle.net/x58RD/

#mydiv {
    overflow: auto;
    max-width: 800px;
    max-height: 600px;
}

将 HTML 中的 URL 替换为:http ://abduzeedo.com/sites/default/files/styles/home_cover/public/originals/wpw_1400px.jpg?itok=IeiXQvLh

然后点击运行

希望这会有所帮助:)让我知道

于 2017-03-14T07:53:41.660 回答