(可能是一个愚蠢的问题) 我的HTML文件(通用HTTP)上有此链接:
<a href="MyWeb.html">Click here</a>
But I would like the MyWeb.html
file to be accessed via HTTPS, and I assume I can not simply change the code to:
<a href="https://MyWeb.html">Click here</a>
... because the MyWeb.html
file is not (or could not be) at the root web directory.
如何使用HTML,CSS和/或JavaScript解决此问题?