请教有关图像问题 居中之类的吗?<align=center>...</align> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用dreamweaver之类的可视化编辑软件,在想放图片的位置的代码处输入<img src=xxxx(图片路径) 比如我在image.php中创建了一个画图程序.在页面调用时希望图象出现在页面的最下方或最上方 可以在页面上方的位置包含进来或者注明图像位置啊<?include("文件路径");?>或<?echo "<img src='文件路径'>";?> <?phpheader("Content-type:image/png");//申明图象类型$im=imagecreate(750,40) or die("Cannot Imitalize new GD image stream");//绘制空白画布用象素确定宽高$background_color=ImageColorallocate($im,255,255,255,255);$fill_color=ImageColorAllocate($im,243,143,179);ImageFill($im,0,0,$fill_color);$white = ImageColorAllocate($im, 255,255,255);ImageLine($im,0,3,750,3,$white);ImageLine($im,0,6,750,6,$white);ImageLine($im,0,34,750,34,$white);ImageLine($im,0,37,750,37,$white);Imagepng($im);?>//图像image.php<?<html><head> <title></title><img src="image.php"></head><body><??></body><img src="image.php"></html>---调用如何写要求显示结果分别一个在上一个在下?>还有图像如何显示中文 试试LAYER的用法吧,用DREAMWEAVER,将显示图象的那段代码放在指定层里面 中文的问题不知如何解决,排版的问题这样吧<?//info.phpHeader("Content-type: image/png");$im = imagecreate(400,30);$black = ImageColorAllocate($im, 0,0,0);$white = ImageColorAllocate($im, 255,255,255);imageline($im, 1, 1, 350, 25, $black);imagearc($im, 200, 15, 20, 20, 35, 190, $white);imagestring($im, 5, 4, 10, "testit", $white);Imagepng($im);ImageDestroy($im);?>以下为调用文件:info2.php<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000"><table width="95%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>1</td> <td>2</td> </tr> <tr> <td> <div align="center"><?echo "<img src=info.php>";?></div> </td> <td>4</td> </tr></table></body></html>自己看看如何排版,OK? IE7下的毛病? 怎么修改? 如果这样包含的话会发生什么后果? 请教一个数组取值问题 php+jquery.uploadify-v2.1.0 如何给图片加水印 phpmailer异常 php_network_getaddresses: getaddrinfo failed: 缩略图问题 大家对防止盗连有好的建议没有? 传递变量有疑 PHP的一个彩蛋 小白求助:如何在详情页面插入数据库的值,可以对应表格里面的关键个字段,并实现详情页面排名 如何通过php来备份postgres数据库啊? php能实现数据库连接池吗
<img src=xxxx(图片路径)
<?
include("文件路径");
?>
或
<?
echo "<img src='文件路径'>";
?>
header("Content-type:image/png");//申明图象类型
$im=imagecreate(750,40) or die("Cannot Imitalize new GD image stream");//绘制空白画布用象素确定宽高
$background_color=ImageColorallocate($im,255,255,255,255);
$fill_color=ImageColorAllocate($im,243,143,179);
ImageFill($im,0,0,$fill_color);
$white = ImageColorAllocate($im, 255,255,255);
ImageLine($im,0,3,750,3,$white);
ImageLine($im,0,6,750,6,$white);
ImageLine($im,0,34,750,34,$white);
ImageLine($im,0,37,750,37,$white);
Imagepng($im);
?>//图像image.php
<?
<html><head>
<title></title>
<img src="image.php">
</head>
<body>
<??>
</body>
<img src="image.php">
</html>
---调用如何写要求显示结果分别一个在上一个在下
?>
还有图像如何显示中文
<?//info.php
Header("Content-type: image/png");
$im = imagecreate(400,30);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
imageline($im, 1, 1, 350, 25, $black);
imagearc($im, 200, 15, 20, 20, 35, 190, $white);
imagestring($im, 5, 4, 10, "testit", $white);
Imagepng($im);
ImageDestroy($im);
?>以下为调用文件:info2.php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body bgcolor="#FFFFFF" text="#000000">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>
<div align="center">
<?
echo "<img src=info.php>";
?>
</div>
</td>
<td>4</td>
</tr>
</table>
</body>
</html>自己看看如何排版,OK?