KoCool Posted October 15, 2009 Share Posted October 15, 2009 我在tpl文件删除了“描述” 和“加入购物车”,但是多出了空间,在css文件中没找到怎么修改高度。谁能帮忙指导一下。谢谢! Link to comment Share on other sites More sharing options...
21846657 Posted October 16, 2009 Share Posted October 16, 2009 请问,你使用的Featured Products插件是原装的吗?如果是,那么打开modules/homefeatured/homefeatured.tpl。在第6行和第11行之间,是类似下面这样的smarty代码 > {assign var='liHeight' value=360} <!-- 这是每一行的行高,单位为px,你可以设置它! --> {assign var='nbItemsPerLine' value=4} <!-- 这是每一行的产品数目,你可以不用设置它! --> {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} </pre> <ul> <!-- 这是最后计算出来的行高,你不用动它! --> 上面的代码里的<!--与 -->之间的内容是我的注释。根据你的产品排列情况来设置相应的值。 Link to comment Share on other sites More sharing options...
KoCool Posted October 22, 2009 Author Share Posted October 22, 2009 非常详细!非常感谢! Link to comment Share on other sites More sharing options...
xjsch Posted February 16, 2012 Share Posted February 16, 2012 请问如何设置它的宽度啊,比如我想在同一行中有5列,但不是另起一行 未命名.bmp Link to comment Share on other sites More sharing options...
awsg Posted March 15, 2012 Share Posted March 15, 2012 感谢分享,谢谢 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now