zen-cart的news模块加滚动错位解决方法
zen-cart的左边添加news模块后,如果加滚动出现错位,可以用下面的方法来解决:
一般添加去看当前模板下的sidebox/tpl_news_scroll_box.php会发现滚动的代码是这样写的:
$content .= ‘<marquee direction= “up” width=210px height=110px scrolldelay=0 scrollamount=2.5 behavior=scroll onmouseover=”this.stop();” onmouseout=”this.start()”>’;
如果出现了错位,只要把width=210px height=110px 写成style=” width:210px; height:110px;”就可以解决。
即$content .= ‘<marquee direction= “up” style=” width:210px; height:110px;” scrolldelay=0 scrollamount=2.5 behavior=scroll onmouseover=”this.stop();” onmouseout=”this.start()”>’;
其他不用修改。
原创文章,转载请注明: 转载自长沙营销型网站建设,营销型网站开发,Zen-Cart | 小龙包
本文链接地址: zen-cart的news模块加滚动错位解决方法

















