我在html页面中编写此代码,但它没有显示图像有什么问题?
<html>
<head>
<title>register page</title>
<body>
</head>
<table align="center">
<tr>
<td>
<img src="C:/xampp/htdocs/me/images/register.jpg" width="600" height="395">
</td>
</tr>
</table>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
如果您从实际服务器运行它,则图像src无效.它需要与您的应用程序根相对.换句话说,如果您的应用程序是root C:/xampp/htdocs/me,那么您的图像标记应该是<img src="/images/register.jpg" width="600" height="395">
| 归档时间: |
|
| 查看次数: |
1662 次 |
| 最近记录: |