Php 图像定位不正确
由于某些原因,在页面上,图像没有整齐地放置在矩形内;相反,它们在IE、Chrome和Firefox中略微向右移动Php 图像定位不正确,php,html,css,wordpress,Php,Html,Css,Wordpress,由于某些原因,在页面上,图像没有整齐地放置在矩形内;相反,它们在IE、Chrome和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_
<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(); ?>" />
“/>
为了均匀起见,我将图像的高度设置为350,宽度设置为150。
“矩形”本身是
<div class="item_image">
<a href="<?php echo wpsc_the_product_permalink(); ?>"> <!--IMG HERE--></a></div>
我正在将WP e-Commerce Grid View Lite插件与WP e-Commerce(另一个Wordpress插件)一起使用。问题出在第116行的索引文件()中。在锚定选择器上
.product_grid_display .item_image a {
width: 350px
}
从该锚中删除width属性可以解决此问题。您有3个选项
谢谢,这很有效,但现在我无法调整图像高度,即使我在标签中添加了
height=“350”