当前位置: 首页 > news >正文

Day41综合案例--alloyTeam

html:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>腾讯全端</title><link rel="shortcut icon" href="favicon.ico" type="image/x-icon"><link rel="stylesheet" href="./Bootstrap/css/bootstrap.min.css"><link rel="stylesheet" href="./Bootstrap/font/bootstrap-icons.css"><link rel="stylesheet" href="./css/index.css">
</head>
<body><!-- 导航 --><nav class="navbar navbar-expand-lg bg-body-tertiary fixed-top"><div class="container"><a class="navbar-brand" href="#"><img src="./assets/images/logo.png" alt=""></a><button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarNavAltMarkup"><div class="navbar-nav"><a class="nav-link active" aria-current="page" href="#">首页</a><a class="nav-link" href="#">博客</a><a class="nav-link" href="#">Github</a><a class="nav-link" href="#">TWeb Conf</a><a class="nav-link" href="#">SuperStar</a><a class="nav-link" href="#">Web前端导航</a><a class="nav-link" href="#">关于</a></div></div></div>
</nav><!-- 轮播图 --><div id="carouselExampleIndicators" class="carousel slide"><div class="carousel-indicators"><button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button><button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button><button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button><button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="3" aria-label="Slide 4"></button></div><div class="carousel-inner"><div class="carousel-item active"></div><div class="carousel-item"></div><div class="carousel-item"></div><div class="carousel-item"></div></div><button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="prev"><span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Previous</span></button><button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide="next"><span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Next</span></button>
</div><!-- 开源项目 --><div class="project container"><!-- 标题 --><div class="title"><h2>OpenSource / 开源项目</h2><p>种类众多的开源显项目,让你爱不释手</p></div><!-- 内容 --><div class="content"><div class="row"><div class="col-lg-3 col-md-6"><a href="#"><img src="./assets/images/omi.png" alt=""><h3>OMI</h3><p>开放现代的Web组件框架</p></a></div><div class="col-lg-3 col-md-6"><a href="#"><img src="./assets/images/alloyimage.png" alt=""><h3>OMI</h3><p>开放现代的Web组件框架</p></a></div><div class="col-lg-3 col-md-6"><a href="#"><img src="./assets/images/alloytouch.png" alt=""><h3>OMI</h3><p>开放现代的Web组件框架</p></a></div><div class="col-lg-3 col-md-6"><a href="#"><img src="./assets/images/soda.png" alt=""><h3>OMI</h3><p>开放现代的Web组件框架</p></a></div></div></div></div><script src="./Bootstrap/js/bootstrap.min.js"></script>
</body>
</html>

less:

// out: ../css/// 导航.bg-body-tertiary{background-color: transparent !important;.navbar-collapse{flex-grow: 0;}.navbar-nav .nav-link.active, .navbar-nav .show>.nav-link{color: yellow;}.nav-link:nth-child(4){background-image: url(../assets/images/fire.png);background-repeat: no-repeat;background-position: left center;padding-left: 20px;background-size: 15px 15px;color: yellow;}
}// 轮播图:小于768图片高度250 max  大于等于768图片高度400 min    大于等于992图片高度500
.carousel{// 响应式---->媒体查询@media (max-width:768px) {.carousel-item{height: 250px;}}@media (min-width:768px) {.carousel-item{height: 400px;}}@media (min-width:992px) {.carousel-item{height: 500px;}}.carousel-item{// height: 500px;background-size: cover;background-position: center 0;}.carousel-item:nth-child(1){background-image: url(../assets/uploads/banner_1.jpg);}.carousel-item:nth-child(2){background-image: url(../assets/uploads/banner_2.jpg);}.carousel-item:nth-child(3){background-image: url(../assets/uploads/banner_3.jpg);}.carousel-item:nth-child(4){background-image: url(../assets/uploads/banner_4.jpg);}}// 开源项目
// 视口宽度大于992:一行排4个盒子 col-lg-3
// 视口宽度大于768:一行排2个盒子 col-md-3.project{margin-top: 60px;text-align: center;.row{div{margin-bottom: 10px;height: 500px;// background-color: pink;a{//块级的宽度和父级一样大display: block;height: 200px;background-color: green;border-radius: 4px;text-decoration: none;}&:nth-child(1) a{background-color: #70c3ff;}&:nth-child(1) a img{margin-top: 10px;margin-bottom: 15px;}&:nth-child(2) a{background-color: #fd6a7f;}&:nth-child(2) a img{margin-top: 10px;margin-bottom: 15px;}&:nth-child(3) a{background-color: #7f8ea0;}&:nth-child(3) a img{width: 160px;height: 60px;margin-top: 10px;margin-bottom: 15px;object-fit: contain;}&:nth-child(4) a{background-color: #89d04f;}&:nth-child(4) a img{width: 160px;height: 60px;margin-top: 10px;margin-bottom: 15px;object-fit: contain;}transition: all 0.5s;h3{color: #fff;}p{color: #fff;}}div:hover{transform: translateY(-12px);}}
}

image

http://www.rkmt.cn/news/159251.html

相关文章:

  • 鸿蒙全生态融合与商业化落地终极实战
  • 计算机毕业设计springboot基于协同过滤算法的旅游推荐系统 SpringBoot 驱动的个性化旅程发现平台:融合协同过滤的智慧推荐引擎 基于用户兴趣聚类的 SpringBoot 旅游行程智能
  • 食品行业品牌战略咨询怎么做?奇正沐古提供办法 - 资讯焦点
  • 易语言开发者破圈指南:从技术工匠到价值创作者
  • 探寻户外发光字行业标杆:解读济南鑫中标的专业解决方案
  • IPIDEA、Decodo、SOAX:2025年全球代理IP服务深度测评与选购指南
  • 基于SpringBoot+Vue的养老院服务预订管理系统的设计与实现 _z9yjx458
  • 数据和 AI 的关系
  • 实体零售数字化转型首选:主流导购机器人选购推荐 - 智造出海
  • 不得了!武昌天玑AIGEO优化系统究竟有哪些?
  • 2025年12月上海保洁公司推荐榜:单位/小区/商场/办公楼/工厂/医院/学校/住宅/保洁/托管/托管外包服务/外包服务/一体化服务/总包服务/全程托管,臣峰环境专业服务守护洁净空间 - 海棠依旧大
  • 2025家装艺术漆生产厂家排名出炉,家装艺术漆/外墙艺术漆/微晶石艺术漆,家装艺术漆企业哪家好 - 品牌推荐师
  • 基于SpringBoot和Vue的共享单车管理系统 骑行记录 单车监督调度系统_fz286ut5
  • 海川半导体SM5206单节锂电池线性充电芯片:技术解析与应用指南
  • 2025年12月成都电玩/成人电玩/摇摇车设备租赁公司选型全攻略 - 2025年品牌推荐榜
  • 【gitlab】通过 `pre-receive` 钩子控制 MR 合并时的分支路径合并方向,阻止未经允许的合并路径
  • 基于SpringBoot的蛋糕烘焙方法经验分享平台_huf98rmc
  • 2025年12月年会创意公司标杆企业最新推荐:GO互动,解锁企业盛典智能互动新体验 - 海棠依旧大
  • 2025年12月矿物铸件厂家推荐榜:矿物铸件直销、矿物铸件生产厂家、矿物铸件制造商、矿物铸件的头部企业,南通盟鼎新材料以高精技术赋能高端装备制造 - 海棠依旧大
  • 【TVM 教程】处理 TVM 错误
  • 【Triton 教程】triton_language.store
  • linux上面能对pdf注释嘛?推荐Okular,亲测好用
  • 机器人自主学习新技巧:强化学习的革命
  • LuatOS平台下USB系统可靠性设计:硬件基础与开发进阶!
  • 基于正弦余弦算法-LSSVM的电涡流传感器温度补偿方法附Matlab代码
  • 动态可视化报告制作:DeepSeek+Mermaid生成交互式流程图/甘特图
  • 高中语法练习解析100篇-005-Huaweis Green 5G Development Strategy 华为的绿色5G发展战略 - new
  • 计算机毕设项目之基于Springboot vue的社区养老服务小程序
  • 具有多种最大功率点跟踪(MPPT)方法的光伏发电系统(PO-增量法-人工神经网络-模糊逻辑控制-粒子群优化)之使用粒子群算法的最大功率点追踪(MPPT)(Simulink仿真实现)
  • Simulink风储调频:风机混合储能电池与超级电容储能联合一次调频的系统频率特性研究