dou31797719 2013-06-12 18:02
浏览 28

图像定位不正确

For some reason, on this page, the images are not positioned neatly inside the rectangles; instead they are shifted slightly to the right in IE, Chrome, and Firefox.

<img height="350" width="150" class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(); ?>" />

I set the image to have a height of 350 and width to be 150 for uniformity. The "rectangle" itself is

<div class="item_image">
                        <a href="<?php echo wpsc_the_product_permalink(); ?>"> <!--IMG HERE--></a></div>

I am using the WP e-Commerce Grid View Lite plugin with WP e-Commerce (another Wordpress plugin).

  • 写回答

2条回答 默认 最新

  • dongzhang1864 2013-06-12 18:04
    关注

    The problem is in the index file (http://yadress.com/make-it-yourself/) on the line 116. On the anchor selector.

    .product_grid_display .item_image a {
        width: 350px
    }
    

    Removing the width property from that anchor solves the issue.

    评论

报告相同问题?

悬赏问题

  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入