我一直在尝试将我的FTP服务器集成到一个基本的HTML网页中,这样看起来会更好一些,感觉更像是一个云存储站点。我试过<object>,<embed>和<iframe>。以下是这些网站的详细信息:
FTP服务器- "FTP://F-Drive.myftp.org/",网站- "HTTP://F-Drive.myftp.org/“
是的,我知道这是不安全的,但我不会用它来做任何敏感的事情。
以下是页面的代码:
<html>
<head>
<link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon"/>
<style>
.button {
border: none;
color: white;
padding: 15px 32px;
text-align: center;
font-family: Century Gothic;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button1 {background-color: #ff00ff;}
</style>
<!--<link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon"/>-->
<title>F-Drive</title>
<section align="center" style="padding: 2%;">
<img src="favicon.png" alt="F-drive Logo">
</section>
</head>
<body style=background-color:#002c8b;">
<section style="background-color:#10c5fb;">
<h2 style="text-align: center;"><span style="font-family: Century Gothic"><strong>Welcome to</strong></span></h1>
<h1 style="text-align: center;"><span style="color: #ff2600;"><span style="font-size:71px"><span style="font-family: Century Gothic"><strong>F-Drive Online Storage</strong></span></span></h1>
<h2 style="text-align: center;"><span style="color: #ff7b00;"><span style="font-family: Century Gothic"><strong>Created by Eddie Farnworth</strong></span></span></h1>
</section>
<div style="background-color:#ffe6cc;color:white;padding:20px">
<section style="background-color:#ffe6cc;">
<div align="center">
<a href="http://F-Drive.myftp.org" class="button button1">Log out</a>
</div>
<body>
<object data="FTP://F-Drive.myftp.org" width="400" height="300" type="text/html"></object>
</body>
</html>可能有点凌乱,因为我对HTML不是很有经验。
任何帮助都是非常感谢的。
发布于 2021-02-06 04:47:20
由于安全问题,改变是不可能的。但不管怎样,看看这个Change ftp css style
https://stackoverflow.com/questions/66069861
复制相似问题