首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >内联块使图像更小的问题?

内联块使图像更小的问题?
EN

Stack Overflow用户
提问于 2013-11-21 02:01:35
回答 1查看 143关注 0票数 0

我正在尝试让这三个图像在这个页面上一个接一个地加载。当我在css中将其设置为"Inline-Block“时,它可以工作,但图像变得非常小。

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

这是我的CSS:

代码语言:javascript
复制
.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:

代码语言:javascript
复制
<?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; ?>

谢谢,任何帮助我们都很感激。

EN

回答 1

Stack Overflow用户

发布于 2013-11-21 04:10:03

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20103466

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档