shrink-to-fit=no

本文详细解析了如何在优快云上撰写一篇高质量的技术博客,包括标题、标签和内容的优化策略,旨在帮助作者提高博客的可见性和吸引力。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解读代码<html> <head lang="en"> <meta charset="UTF-8"> <meta name="Robots" content="all"> <meta name="viewport" content="width=device-width,intial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1"> <meta name="referrer" content="unsafe-url"> <meta name="renderer" content="webkit"> <meta name="description" content=""> <meta name="keywords" content=""> <title></title> <base target="_blank"> <link href="css/animate.css" rel="stylesheet"> <link rel="stylesheet" href="css/reset-pc.css"> <link rel="stylesheet" href="css/animate.css"> <link rel="stylesheet" href="css/index.css?202310141454"> <script src="js/jquery.1.12.4.min.js"></script> <script src="js/swiper-bundle.min.js?v=202104131601"></script> <script src="js/public.js?v=202104131601"></script> <html> <head lang="en"> <meta charset="UTF-8"> <meta name="Robots" content="all"> <meta name="viewport" content="width=device-width,intial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1"> <meta name="referrer" content="unsafe-url"> <meta name="renderer" content="webkit"> <meta name="description" content=""> <meta name="keywords" content=""> <title></title> <base target="_blank"> <link href="css/animate.css" rel="stylesheet"> <link rel="stylesheet" href="css/reset-pc.css"> <link rel="stylesheet" href="css/animate.css"> <link rel="stylesheet" href="css/index.css?202310141454"> <script src="js/jquery.1.12.4.min.js"></script> <script src="js/swiper-bundle.min.js?v=202104131601"></script> <script src="js/public.js?v=202104131601"></script>
03-24
<!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no"> <title>用户登录界面</title> <link th:href="@{/css/bootstrap.css}" rel="stylesheet"> <link th:href="@{/css/signin.css}" rel="stylesheet"> </head> <body class="text-center"> <!-- 用户登录form表单 --> <form class="form-signin" th:action="@{/toBook}"> <img class="mb-4" th:src="@{/img/login.jpg}" width="88" height="88"> <h1 class="h3 mb-3 font-weight-normal" th:text="{login.tip}">请登录</h1> <input type="text" class="form-control" name="username" th:placeholder="{login.username}" required="" autofocus=""> <input type="password" class="form-control" name="password" th:placeholder="{login.password}" required=""> <div class="checkbox mb-3"> <label> <input type="checkbox" value="remember-me"> {login.rememberme} </label> </div> <button class="btn btn-lg btn-primary btn-block" th:text="{login.button}">登录</button> <p class="mt-5 mb-3 text-muted">© <span th:text="${currentYear}"></span>-<span th:text="${currentYear}+1"></span></p> </form> </body> </html> <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no"> <title>用户登录界面</title> <link th:href="@{/css/bootstrap.css}" rel="stylesheet"> <link th:href="@{/css/signin.css}" rel="stylesheet"> </head> <body class="text-center"> <!-- 用户登录form表单 --> <form class="form-signin" th:action="@{/toBook}"> <img class="mb-4" th:src="@{/img/login.jpg}" width="88" height="88"> <h1 class="h3 mb-3 font-weight-normal" th:text="{login.tip}">请登录</h1> <input type="text" class="form-control" name="username" th:placeholder="{login.username}" required="" autofocus=""> <input type="password" class="form-control" name="password" th:placeholder="{login.password}" required=""> <div class="checkbox mb-3"> <label> <input type="checkbox" value="remember-me"> {login.rememberme} </label> </div> <button class="btn btn-lg btn-primary btn-block" th:text="{login.button}">登录</button> <p class="mt-5 mb-3 text-muted">© <span th:text="${currentYear}"></span>-<span th:text="${currentYear}+1"></span></p> </form> </body> </html> 1、整合login.html模板 要求:1) 显示当前年,currentYear~currentYear+1 2) 点击登录后,通过@RequestParam("username")获取输入的用户名,并在控制台打印,登陆后跳转到图书页面
03-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值