1

我想在 CodeIgniter 的表单 (100 * 100) 上显示图像时调整图像大小,方法是使用以下函数:

echo img('imagepath');
4

1 回答 1

1

这会做到的。。

$image_properties = array(
      'src' => 'imagepath',
      'alt' => 'Me, demonstrating how to eat 4 slices of pizza at one time',
      'class' => 'post_images',
      'width' => '100',
      'height' => '100',
      'title' => 'That was quite a night'
);

echo img($image_properties);

资料来源: Codeigniter

于 2012-09-14T13:11:20.300 回答