gpt4 book ai didi

php - Inline-Block 使图像变小的问题?

转载 作者:行者123 更新时间:2023-11-28 11:55:55 24 4
gpt4 key购买 nike

我正在尝试让此页面上的这三张图片依次加载。当我在 css 中将它设置为“Inline-Block”时,它起作用了,但图像变得非常小。

https://www.palmersdeliandmarket.com/holiday/

这是我的 CSS:

.categories ul li a.current { font-weight: bold; }
#shopp .category { position: relative; display: inline-block;}
#shopp .views { display: inline; position: absolute; right: 0; top: 0; }
#shopp .views button { border: 1px solid transparent; background: none; cursor: pointer; padding: 2px; margin-bottom: -3px; }
#shopp .views button.hover { background-color: #ebebeb; border: 1px solid #777; }
#shopp .views li { display: inline; }
#shopp .orderby { float: right; }

和我的 HTML:

<?php if(shopp('category','hasproducts','load=coverimages')): ?>
<div class="alignright"><?php shopp('category','pagination','show=10'); ?></div>
<ul class="products">
<li class="row"><ul>
<?php while(shopp('category','products')): ?>
<?php if(shopp('category','row')): ?></ul></li><li class="row"><ul><?php endif; ?>
<li class="product">
<div class="frame">
<a href="<?php shopp('product','url'); ?>"><?php shopp('product','coverimage','setting=gallery-previews'); ?></a>
<div class="details">
<h4 class="name"><a href="<?php shopp('product','url'); ?>"><?php shopp('product','name'); ?></a></h4>
<p class="price"><?php shopp('product','saleprice','starting=from'); ?> </p>
<?php if (shopp('product','has-savings')): ?>
<p class="savings">Save <?php shopp('product','savings','show=percent'); ?></p>
<?php endif; ?>

<div class="listview">
<p><?php shopp('product','summary'); ?></p>
<form action="<?php shopp('cart','url'); ?>" method="post" class="shopp product">
<?php shopp('product','addtocart'); ?>
</form>
</div>
</div>

</div>
</li>
<?php endwhile; ?>
</ul></li>
</ul>

<div class="alignright"><?php shopp('category','pagination','show=10'); ?></div>

</div>
<?php else: ?>
<?php if (!shopp('catalog','is-landing')): ?>
<?php shopp('catalog','breadcrumb'); ?>
<h3><?php shopp('category','name'); ?></h3>
<p>No products were found.</p>
<?php endif; ?>
<?php endif; ?>

谢谢,感谢任何帮助。

最佳答案

display: inline-block + width: auto 给出的宽度仅足以容纳内容。添加 宽度:100%

关于php - Inline-Block 使图像变小的问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20103466/

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