Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何指定如何使用HTML打开文件?_Html - Fatal编程技术网

如何指定如何使用HTML打开文件?

如何指定如何使用HTML打开文件?,html,Html,我一直想在我的电脑上创建一个个人网站,在那里我可以点击我想要的标题,并让它在它令人尊敬的模拟器中启动游戏。我在hrefs中尝试了hrefs和hrefs,但没有成功。我希望它是在我的闪存驱动器和它将是所有必要的模拟器,ROM和代码。我不想在每台计算机上都设置默认程序。 以下是我目前的代码: <html> <head> <title>Games</title> </head> <body style="text-a

我一直想在我的电脑上创建一个个人网站,在那里我可以点击我想要的标题,并让它在它令人尊敬的模拟器中启动游戏。我在hrefs中尝试了hrefs和hrefs,但没有成功。我希望它是在我的闪存驱动器和它将是所有必要的模拟器,ROM和代码。我不想在每台计算机上都设置默认程序。 以下是我目前的代码:

<html>
  <head>
    <title>Games</title>
  </head>
  <body style="text-align:center;background-image:url('Images/background.jpg');color:#D8D8D8;link="gold" alink="green" vlink="#BDBDBD">
    </br></br></br></br></br></br></br></br></br>
    <a href="Rom/007.z64"><font style="font-size:20px;text-align:center;Font-family:Hobo Std">Golden Eye 007</font></a></br></br>
    <a href="Rom/Mario Kart 64.z64"><font style="font-size:20px;text-align:center;Font-family:Hobo Std">Mario Kart 64</font></a></br></br>
    <a href="Rom/mario64.z64"><font style="font-size:20px;text-align:center;Font-family:Hobo Std">Super Mario 64</font></a></br></br>
    <a href="Rom/Papermario.z64"><font style="font-size:20px;text-align:center;Font-family:Hobo Std">Paper Mario</font></a></br></br>
    <a href="Rom/Zelda.n64"><font style="font-size:20px;text-align:center;Font-family:Hobo Std">Legend of Zelda Ocarina of Time</font></a></br></br>
    <a href="Rom/FFXII.bin"><font style="font-size:20px;text-align:center;Font-family:Hobo Std">Final Fantasy XII</font></a></br></br>
    <div style="position:absolute;top:10px;left:540px"><h2 style="font-size:50px;text-align:center;Font-family:Hobo Std;color:#266EE1">Video Games</h2></div>
    <div style="position:absolute;top:110px;left:535px"><hr style="width:295px;height:2px;background:#266EE1"/></div>
  </body>
</html>

游戏

如果我正确理解你的问题,这在现代浏览器中是不可能的。链接不是用来打开文件的,它们是用来重定向到其他页面或下载文件的。

网站无法启动“本机”程序。您应该在浏览器模拟器中找到并在浏览器中打开它。啊,好的,谢谢。这也解释了为什么它一直下载文件。