首页 > 解决方案 > 无法打开其他页面

问题描述

截屏

我正在制作一个 Kakao 谈话克隆用于学习目的。

当我单击该按钮时,我在我的网站上看不到任何内容。

来源:https ://github.com/fatejin/kakao-clone-v2.git

标签: htmlcss

解决方案


登录按钮正在尝试提交到 friends.html 页面,而该页面在您的存储库中不存在,因此您收到 404(未找到页面)。如果您创建一个friends.html 页面,则单击登录按钮将重定向到那里。

<form action="friends.html" method="get" id="login-form">
  <input name="username" type="text" placeholder="Email or phone number" />
  <input name="password" type="password" placeholder="Password" />
  <input type="submit" value="Log In" />
  <a href="#">Find Kakao talk Account or Password</a>
</form>

推荐阅读