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);

出典: コードイグナイター

于 2012-09-14T13:11:20.300 に答える