请教下HTML的问题 请别见笑

来源:百度知道 编辑:UC知道 时间:2024/05/13 19:58:20
<html>
<head>
<title></title>
</head>
<body text=#"FFFF00" backgrond=C:\Documents and Settings\Administrator\My Documents\My QQ Files\1.jpg><img src="C:\Documents and Settings\Administrator\My Documents\My QQ Files\1.jpg"/>欢迎
</body>
</html>为什么我放上图片以后,欢迎这2个字没有在图片的上面,我的意思是图片没有成为背景,而是图片是图片,字是字,完全是分开的,请问该怎么做才能让文字在图片上显示??

你没有用单元格布局?
<html>
<head>
<title></title>
</head>
<body background="file:///C:\Documents and Settings\Administrator\My Documents\My QQ Files\1.jpg">
<table>
<tr>
<td align="center">欢迎</td>
</tr>
<tr>
<td align="center"><img border="0" src="file:///C:\Documents and Settings\Administrator\My Documents\My QQ Files\1.jpg"></td>
</tr>
</table>

</body>
</html>

=========================================
也或者这样:
<html>
<head>
<title></title>
</head>
<body>
<div class="center">
欢迎<br><img border="0" src="file:///C:\Documents and Settings\Administrator\My Documents\