用vml,try:
<html xmlns:v="urn:schemas-microsoft-com:vml">
<HEAD>
<TITLE></TITLE>
<style>
v\:* { behavior: url(#default#VML) }
</style>
</HEAD>
<body>
<v:line from="0,0" to="100,50" style="position:relative;"/>
</body>
</html>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<HEAD>
<TITLE></TITLE>
<style>
v\:* { behavior: url(#default#VML) }
</style>
</HEAD>
<body>
<v:line from="0,0" to="100,50" style="position:relative;"/>
</body>
</html>
php下面有绘图的功能,你去参考一下
<html xmlns:v="urn:schemas-microsoft-com:vml">
<HEAD>
<TITLE></TITLE>
<style>
v\:* { behavior: url(#default#VML) }
</style>
</HEAD>
<body bgcolor=orange topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>
<div>
<img src="images/test.jpg">
</div>
<div>
<v:line from="0,0" to="100,50" style="position:relative;"/>
</div>
</body>
</html>