div若隐若现

  1.         <script type="text/javascript">
  2.         function dis_pp()
  3.         {
  4.         var pp=document.getElementById("pp");
  5.         pp_1=pp.style.display;
  6.         if(pp_1=="none")
  7.         {
  8.         pp.style.display="";
  9.         }
  10.         else
  11.         {
  12.         pp.style.display="none";
  13.         }
  14.         }
  15.         </script>
css代码:.hero { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1503220317375-aaad61436b1b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80'); background-size: cover; background-position: center; color: white; text-align: center; padding: 150px 0; margin-bottom: 40px; } .hero-content h1 { font-size: 3rem; margin-bottom: 20px; } .hero-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; } hmtl代码:<section class="hero"> <div class="container"> <div class="hero-content animate"> <h1>发现世界的美丽角落</h1> <p>专业旅行顾问为您定制独一无二的旅程,开启一段难忘的冒险之旅</p> <p>在广袤无垠的地球上,藏着无数令人心醉的美丽角落,等待着人们去探寻。 在挪威的罗弗敦群岛,曲折蜿蜒的海岸线勾勒出壮丽的峡湾风光。清晨,第一缕阳光洒在高耸入云的山峰,为皑皑白雪镀上一层金色光辉;傍晚,夕阳将海面染成梦幻的橙红色,波光粼粼,渔舍在暮色中若隐若现,宛如童话世界。 而在非洲的塞伦盖蒂大草原,上演着震撼人心的生命奇迹。每年数以百万计的角马、斑马等动物长途迁徙,浩浩荡荡,气势磅礴,与草原上的狮群、猎豹共同谱写着生命的赞歌。 还有玻利维亚的乌尤尼盐沼,雨后,这片世界最大的盐沼化身成一面巨大的“天空之镜”,水天相接,行走其上,仿佛置身于云端,分不清哪里是天,哪里是地。这些鲜为人知的美丽角落,正以独特的魅力,邀请你踏上发现之旅,领略世界的神奇与美妙。</p> <a href="products.html" class="btn">探索套餐</a> </div> </div> </section> 帮我把上述代码中的背景图片改为一个自动播放的世界美丽风景集合的视频
06-22
<template> <div class="login_container"> <!-- 登录盒子 --> <div class="login-box"> <h2 class="title">欢迎回来</h2> <p class="subtitle">请登录您的账户</p> <!-- 登录表单 --> <el-form ref="loginForm" :model="form" :rules="rules" label-width="0px" class="login-form" > <!-- 用户名 --> <el-form-item prop="username"> <el-input v-model="form.username" prefix-icon="el-icon-user" placeholder="用户名 / 邮箱" clearable @keydown.enter.native="login" /> </el-form-item> <!-- 密码 --> <el-form-item prop="password"> <el-input v-model="form.password" prefix-icon="el-icon-key" placeholder="请输入密码" type="password" clearable @keydown.enter.native="login" /> </el-form-item> <!-- 验证码 --> <el-form-item prop="validCode"> <div class="captcha-container"> <el-input v-model="form.validCode" prefix-icon="el-icon-lock" placeholder="验证码" @keydown.enter.native="login" style="flex: 1; margin-right: 10px" /> <ValidCode @input="getValidCode" ref="child" class="unselectable" /> </div> </el-form-item> <!-- 按钮组 --> <el-form-item class="btn-group"> <el-button type="primary" class="btn login-btn" @click="login" :loading="loading" > {{ loading ? "登录中..." : "登 录" }} </el-button> <el-button type="info" class="btn register-btn" @click="$router.push('/register')" > 注 册 </el-button> <el-button type="warning" class="btn admin-btn" @click="jump"> 管理员入口 </el-button> <el-button type="warning" class="btn admin-btn" @click="jump"> 站长入口 </el-button> </el-form-item> </el-form> <!-- 渐隐提示 --> <p class="footer-tip">游客体验:guest / 123456</p> </div> </div> </template> <script> import ValidCode from "@/components/ValidCode.vue"; import request from "@/utils/request"; export default { name: "Login", components: { ValidCode }, created() { document.title = "团购商城 - 登录"; }, data() { return { form: { username: "", password: "", validCode: "", }, validCode: "", loading: false, rules: { username: [ { required: true, message: "请输入用户名!", trigger: "blur" }, { min: 2, max: 25, message: "长度在 2 到 25 个字符", trigger: "blur", }, ], password: [ { required: true, message: "请输入密码!", trigger: "blur" }, { min: 6, max: 15, message: "建议密码长度为 6-15 位", trigger: "blur", }, ], validCode: [ { required: true, message: "请输入验证码!", trigger: "blur" }, ], }, }; }, methods: { getValidCode(data) { this.validCode = data; }, login() { this.$refs.loginForm.validate((valid) => { if (!valid) return; if ( this.form.validCode.toLowerCase() !== this.validCode.toLowerCase() ) { this.$message.error("验证码错误"); this.$refs.child.refreshCode(); return; } this.loading = true; request .post("/user/login", this.form) .then((res) => { if (res.code === "0") { this.$message.success("登录成功!"); sessionStorage.setItem("user", JSON.stringify(res.data)); this.$router.push("/shop"); } else { this.$message.error(res.msg || "登录失败"); this.$refs.child.refreshCode(); } }) .catch(() => { this.$message.error("网络异常,请稍后重试"); }) .finally(() => { this.loading = false; }); }); }, jump() { this.$router.push("/manageLogin"); }, jumptwo() { this.$router.push("/adsenseLogin"); }, }, }; </script> <style lang="less" scoped> // 超美渐变背景 + SVG 光点纹理 .login_container { height: 100vh; background: linear-gradient(135deg, #7f7fd5, #86a8e7, #91eae4); background-size: 400% 400%; animation: gradientBG 15s ease infinite; display: flex; justify-content: center; align-items: center; font-family: "Segoe UI", "Helvetica Neue", "Microsoft YaHei", sans-serif; position: relative; &::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; opacity: 0.6; } } @keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } // 登录框:毛玻璃 + 投影 + 圆角 .login-box { width: 440px; padding: 55px 60px 45px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 1px 10px rgba(255, 255, 255, 0.6) inset; border: 1px solid rgba(255, 255, 255, 0.4); text-align: center; z-index: 10; transition: transform 0.3s ease; &:hover { transform: translateY(-5px); } .title { color: #333; font-size: 32px; margin-bottom: 10px; font-weight: 700; letter-spacing: 1px; } .subtitle { color: #666; font-size: 15px; margin-bottom: 35px; font-weight: 400; } } // 表单样式优化 .login-form { /deep/ .el-input__inner { height: 52px !important; line-height: 52px !important; border-radius: 16px; border: 1px solid #ddd; background-color: rgba(255, 255, 255, 0.9); color: #333; font-size: 15px; padding-left: 45px; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); &:focus { border-color: #7f7fd5; box-shadow: 0 0 0 4px rgba(127, 127, 213, 0.2); transform: scale(1.03); } } /deep/ .el-input__prefix { display: flex; align-items: center; margin-left: 12px; color: #aaa; font-size: 18px; } } .captcha-container { display: flex; align-items: center; gap: 10px; } .btn-group { display: flex; flex-direction: column; gap: 14px; margin-top: 20px !important; .btn { height: 52px; border-radius: 16px; font-size: 17px; font-weight: 600; letter-spacing: 1px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); &:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); } &:active { transform: translateY(0); } } .login-btn { background: linear-gradient(to right, #6a11cb, #2575fc); border: none; color: white; box-shadow: 0 6px 18px rgba(106, 17, 203, 0.3); } .register-btn { background: rgba(255, 255, 255, 0.9); border: 1px solid #ddd; color: #555; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .admin-btn { background: linear-gradient(to right, #f79533, #f37055); border: none; color: white; font-weight: bold; box-shadow: 0 6px 16px rgba(243, 112, 85, 0.3); } } .footer-tip { margin-top: 25px; font-size: 13px; color: rgba(0, 0, 0, 0.4); font-style: italic; } </style> 美化一下\
09-28
【无人机】基于改进粒子群算法的无人机路径规划研究[和遗传算法、粒子群算法进行比较](Matlab代码实现)内容概要:本文围绕基于改进粒子群算法的无人机路径规划展开研究,重点探讨了在复杂环境中利用改进粒子群算法(PSO)实现无人机三维路径规划的方法,并将其与遗传算法(GA)、标准粒子群算法等传统优化算法进行对比分析。研究内容涵盖路径规划的多目标优化、避障策略、航路点约束以及算法收敛性和寻优能力的评估,所有实验均通过Matlab代码实现,提供了完整的仿真验证流程。文章还提到了多种智能优化算法在无人机路径规划中的应用比较,突出了改进PSO在收敛速度和全局寻优方面的优势。; 适合人群:具备一定Matlab编程基础和优化算法知识的研究生、科研人员及从事无人机路径规划、智能优化算法研究的相关技术人员。; 使用场景及目标:①用于无人机在复杂地形或动态环境下的三维路径规划仿真研究;②比较不同智能优化算法(如PSO、GA、蚁群算法、RRT等)在路径规划中的性能差异;③为多目标优化问题提供算法选型和改进思路。; 阅读建议:建议读者结合文中提供的Matlab代码进行实践操作,重点关注算法的参数设置、适应度函数设计及路径约束处理方式,同时可参考文中提到的多种算法对比思路,拓展到其他智能优化算法的研究与改进中。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值