【发布时间】:2015-04-06 09:16:08
【问题描述】:
在我的自定义模块中,我使用下面的代码来显示图像。图片样式“user_profile_image”的值为 50、50。
它给了我这样的 html。
我不想在浏览器中使用 height="50" width="50" 调整图像大小。
我可以在服务器上调整它的大小,这样客户端就不需要高度和宽度属性了。
print theme('image_style', array('path' => $res_value->_field_data['users_node_uid']['entity']->picture->uri, 'style_name' => 'user_profile_image'));
【问题讨论】: