I am newbie of using HTML. I want to show image located at "C:UsersJas minefolderlandscape.jpg" in HTML. I tried all the previous posted question related to image not display while using C drive path. But those answers did not work for me. I tried the below code and the image does not display. Can you suggest which path of code is wrong?
此外,如果文件夹名中有空间,如何提供文件路径?
最后,如果我想垂直显示图像而不是水平显示图像,如何编写代码。我确实添加了空白:nowrap
,但结果一直以水平顺序显示。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#images{white-space: nowrap;
display: -moz-box;
-moz-box-orient: veritcal;}
</style>
</head>
<body>
<div id="images">
<img src="file:///C:UsersJas minelandscape.jpg" alt="file:///C:Userslandscape.jpg">
<img src="file:///C:/Users/Jas mine/landscape.jpg" alt="file:///C:/Users/landscape.jpg">
<img src="file:///C:UsersJas minelandscape.jpg" alt="file:///C:Userslandscape.jpg">
<img src="file:///C:/Users/Jas mine/landscape.jpg" alt="file:///C:/Users/landscape.jpg">
<img src="file:///C:UsersJas minelandscape.jpg" alt="file:///C:Userslandscape.jpgend">
<img src="file:///C:/Users/Jas mine/landscape.jpg" alt="file:///C:/Users/landscape.jpgend">
<img src="http:\localhostJas minelandscape.jpg" alt="http:\localhostlandscape.jpg">
</div>
</body>
</html>
我在这里得到了结果,所有的图像都没有显示结果