如何将2行组合成1行

时间:2016-03-05 11:09:26

标签: html smarty

enter image description here 附上我的网站的图片..我应该在我的代码中做出哪些更改,以便将2行更改为1行。我希望移动图像在一行中..更改代码行中的内容{if $ smarty.foreach.product_list.iteration%$ number_line == 1 || $ number_line == 1} 把它做成一排? 以下是我的完整代码...

D = self.con.execute('select length from googlepagelength where urlid = {0}'.format(row[0])).fetchone()
if D:
    D = D[0]

1 个答案:

答案 0 :(得分:0)

尝试使用响应式设计框架。即使您只是使用了lib的一部分,它也会对您有所帮助。否则,您可以通过在<scr>标记中添加不同尺寸来设置图像尺寸以重新缩放图像尺寸。我建议这样做:Very nice link about design