为啥我输出的网页背景是黑色?
代码和老师一样啊
<?php
$image = imagecreatetruecolor( 100,30 );
$bgcolor = imagecolorallocate($image,255,255,255);
imagefill($image,0,0,$bgcolor);
header( 'content-type:image/png' );
imagepng( $image );
//end
imagedestroy( $image );
代码和老师一样啊
<?php
$image = imagecreatetruecolor( 100,30 );
$bgcolor = imagecolorallocate($image,255,255,255);
imagefill($image,0,0,$bgcolor);
header( 'content-type:image/png' );
imagepng( $image );
//end
imagedestroy( $image );
2017-04-26
举报