gpt4 book ai didi

html - 加载时我的图片在我的网站上的格式不正确

转载 作者:行者123 更新时间:2023-11-28 00:34:48 26 4
gpt4 key购买 nike

当我第一次尝试在任何浏览器中加载我的网站时,我的图像似乎没有正确对齐,除非我调整浏览器的大小。

http://sahyogseniorclubmontreal.com/index.html这是我的网页的链接。

我似乎只在我第一次打开网页时发生,并且只在我将网站上传到 godaddy 后发生。当我在本地运行它时,它不会发生。

<div class="portfolio-list">

<ul class="nav list-unstyled" id="portfolio-flters">
<li class="filter filter-active" data-filter=".all">all</li>
<li class="filter" data-filter=".branding">Parliament Trip</li>
<li class="filter" data-filter=".mockups">Christmas Supper At Kwality Restaurant</li>
<!-- <li class="filter" data-filter=".uikits">ui kits</li>
<li class="filter" data-filter=".webdesign">web design</li>
<li class="filter" data-filter=".photography">photography</li> -->
</ul>

</div>

<div class="portfolio-container">

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0011.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0012.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0013.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0021.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0012.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181123-WA0004.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0005.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0001.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0002.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0001.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0003.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0004.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0005.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0006.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups uikits photography">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0007.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

</div>

最佳答案

您可能需要为图像设置 widthheight 属性。或者用 CSS 设置它们:

.portfolio-thumbnail img {
max-width: 200px; /* This is just an example value */
max-height: 200px; /* Idem */
}
<div class="portfolio-list">

<ul class="nav list-unstyled" id="portfolio-flters">
<li class="filter filter-active" data-filter=".all">all</li>
<li class="filter" data-filter=".branding">Parliament Trip</li>
<li class="filter" data-filter=".mockups">Christmas Supper At Kwality Restaurant</li>
<!-- <li class="filter" data-filter=".uikits">ui kits</li>
<li class="filter" data-filter=".webdesign">web design</li>
<li class="filter" data-filter=".photography">photography</li> -->
</ul>

</div>

<div class="portfolio-container">

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0011.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0012.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0013.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0021.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0012.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181123-WA0004.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181122-WA0005.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0001.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all branding">
<a class="popup-img" href="images/portfolio/IMG-20181121-WA0002.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0001.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0003.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0004.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0005.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0006.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

<div class="col-lg-4 col-md-6 portfolio-thumbnail all mockups uikits photography">
<a class="popup-img" href="images/portfolio/IMG-20181217-WA0007.jpg">
<img src="https://via.placeholder.com/350x150" alt="img">
</a>
</div>

</div>

关于html - 加载时我的图片在我的网站上的格式不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54234299/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com