哈喽大家好,今天博主要讲解的是独立开发电子商务网站的第五篇——项目创建+数据库开发,想要预览整个系列博客的参考目录请点击这里
在本博客,博主会讲解:
- 调用Bootstrap开发管理员后台登入界面
- 调用Bootstrap开发管理员后台界面
调用Bootstrap开发管理员后台登入界面
- 首先,进入网站根目录,创建文件Admin.php
- 输入以下代码:
-
<html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>管理员后台</title> <!--调用Bootstrap--> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> <!--调用sweetAlert2--> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@8"></script> <!--局内css--> <style> html,body{ margin: 0; min-height: 100%; } </style> </head> <body style="background-color:grey"> <div class="d-flex justify-content-center align-items-center" style="width:100%;height:100%;"> <div style="width:50%;height:40%;background-color:#ffffff" class="d-flex justify-content-center align-items-center"> <form style="width:90%;
-