如何:在OSCommerce tep_image函数中添加样式

时间:2014-06-10 14:59:18

标签: oscommerce

Oscommerce function tep_image:

这是代码:

tep_image(DIR_WS_IMAGES。" partners_grey_top2.png"," ksa shopping"," 395"," 36");

如何添加样式?

1 个答案:

答案 0 :(得分:0)

osCommerce的股票版本中tep_image函数的第五个参数接受自定义参数。如果你想添加一个像class =" product_image"这样的CSS类,你可以改变你的函数看起来像这样

tep_image(DIR_WS_IMAGES . "partners_grey_top2.png", "ksa shopping", "395", "36", 'class="product_image"');