Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image Magento产品与底部对齐_Image_Magento_Product - Fatal编程技术网

Image Magento产品与底部对齐

Image Magento产品与底部对齐,image,magento,product,Image,Magento,Product,我使用magento在线商店,并创建了我自己的区块和脚本,以显示新的和特殊价格的产品 它工作得很好,但有些产品没有正确对齐 它们似乎与容器底部对齐,因此图像看起来不成直线,我希望所有图像都与顶部对齐。使用firebug我找不到CSS,这使得它们与底部对齐 我唯一应用的CSS是: #tabs .ui-tabs-panel ul {text-align: center; background:#E5E1D5; } #tabs .ui-tabs-panel ul li {width:24.7%;}

我使用magento在线商店,并创建了我自己的区块和脚本,以显示新的和特殊价格的产品

它工作得很好,但有些产品没有正确对齐

它们似乎与容器底部对齐,因此图像看起来不成直线,我希望所有图像都与顶部对齐。使用firebug我找不到CSS,这使得它们与底部对齐

我唯一应用的CSS是:

#tabs .ui-tabs-panel ul {text-align: center; background:#E5E1D5; }
#tabs .ui-tabs-panel ul li {width:24.7%;}
你有什么想法吗

谢谢

试试这个CSS:

#tabs .ui-tabs-panel ul {text-align: center; background:#E5E1D5; position: relative;}
#tabs .ui-tabs-panel ul li {width:24.7%; position: absolute; top: 0;}

不幸的是,我已经试过了,因为我一开始就想到了这一点,但最终所有的产品都坐在了一起。干杯