查看效果:http://is666a.gitee.io/ibm-chinese-index/
下载源码:小朋友/IBM中文官网首页
知乎视频www.zhihu.com需要用到的技术:html基础标签的使用,css基础样式,flex布局,层模型(position定位),响应式布局
难度:简单
适宜人群:前端入门的同学
温馨提示,以下内容可能会造成眼花缭乱,身体感觉极度不适,且行且珍惜,宝贵讲解页尾见
base.js
var timer = null;
// 控制下拉菜单显示隐藏
function flagIsTrue(flag, menuSon) {
if (flag) {
menuSon.style.cssText += 'display:flex';
} else {
menuSon.style.cssText += 'display:none';
}
};
// 防抖
function flagDelay(flag, callback, menuSon) {
return function() {
if (timer) {
clearTimeout(timer);
}
timer = setTimeout(callback.bind(this, flag, menuSon), 200);
}
};
(() => {
var hasSonMenu = document.querySelectorAll('.meun-item.have-son');
var menuSon = document.getElementsByClassName('drop-down-content')[0];
var flag = false;
// 下面这段代码可以简化
for (let i = 0; i < hasSonMenu.length; i++) {
hasSonMenu[i].addEventListener('mouseenter', function() {
menuSon.style.cssText += `background-color:rgb(${i*60},${i*60},${i*60});`;
flag = true;
flagDelay(flag, flagIsTrue, menuSon)();
});
hasSonMenu[i].addEventListener('mouseleave', function() {
flag = false;
flagDelay(flag, flagIsTrue, menuSon)();
});
}
menuSon.addEventListener('mouseenter', function() {
flag = true;
flagDelay(flag, flagIsTrue, menuSon)();
});
menuSon.addEventListener('mouseleave', function() {
flag = false;
flagDelay(flag, flagIsTrue, menuSon)();
});
})();
style.less
html,body,#app{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: #fff;
}
ul{
list-style: none;
}
a{
text-decoration: none;
}
/* header样式 */
.header{
width: 100%;
.top-nav-bar{
width: 100%;
height: 50px;
line-height: 50px;
display: flex;
align-content: center;
justify-content: space-between;
// padding-left: 10px;
border-bottom: 1px solid #ddd;
position: relative;
z-index: 99;
.left{
display: flex;
height: 100%;
padding-left: 10px;
.logo{
font-size: 24px;
color: #000;
}
.top-meun{
height: 100%;
display: flex;
justify-content: flex-start;
margin-top: 0px;
}
.meun-item{
height: 100%;
line-height: 50px;
margin-right: 20px;
cursor: pointer;
position: relative;
padding-right:5px;
}
}
.right{
height: 100%;
display: flex;
position: relative;
input{
outline: none;
border: none;
height: 100%;
width: 150px;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
padding: 0 50px 0 10px;
font-size: 16px;
&:focus{
box-shadow: 0 0 5px 2px #3b6caa;
}
&:hover{
box-shadow: 0 0 5px 2px #3b6caa;
}
}
.icon-sousuo,.icon-wode,.icon-caidan{
display: block;
width: 50px;
height: 50px;
text-align: center;
font-size: 16px;
}
.icon-wode,.icon-caidan{
.hover-bottom{
width: 50px !important;
}
}
.iconfont.icon-sousuo{
position: absolute;
left: 160px;
top: 0;
&:hover{
box-shadow: 0 0 5px 2px #3b6caa;
}
}
.icon-wode{
ul{
padding: 0;
position: absolute;
background-color: #fff;
left: -55px;
top: 35px;
display: none;
}
li{
width: 80px;
height: 30px;
line-height: 30px;
text-align: left;
padding: 0 10px;
&:hover{
background-color: #3b6caa;
color: #fff;
}
}
}
}
.left,.right{
.hover-bottom{
display: block;
background-color: #3b6caa;
width: 100%;
height: 0;
position: absolute;
bottom: 0;
transition: .5s height;
}
.meun-item:hover .hover-bottom{
height: 5px;
}
}
}
/* 下拉二集菜单 */
.drop-down-content{
width: 100%;
height: 0;
position: absolute;
top: 50px;
background-color: #fff;
display: flex;
z-index: 98;
transition: height .5s;
.left{
background-color: #f4f4f4;
width: 30%;
height: 100%;
}
.right{
height: 100%;
}
.meun-son-content{
width: 100%;
// width: 1400px;
height: 100%;
margin: 0 auto;
}
}
/* 图片区 */
.header-bg{
width: 100%;
height: 466px;
background-image: url(../images/leadspace-think-event-promo.png);
background-size: 100% auto;
background-position: 50% 50%;
background-repeat: no-repeat;
background-color: rgb(1,44,156);
.content{
position: relative;
width: 90%;
// max-width: 1226px;
margin: 0 auto;
.title{
position: absolute;
color: #fff;
font-weight: 500;
font-size: 40px;
top: 40px;
left: 0;
}
.text{
position: absolute;
color: #fff;
line-height: 40px;
top: 170px;
left: 0;
}
a{
color: #fff;
&:hover{
text-decoration: underline #fff;
}
}
}
}
}
/* main样式 */
.main{
/* IBM本周活动样式 */
.week-action{
margin: 0 auto;
padding: 30px 0;
// padding: 0 50px;
// max-width: 1226px;
// width: 1400px;
width: 90%;
}
.action-content,.offer-content{
width: 100%;
padding: 0;
display: flex;
justify-content: space-between;
}
.service-item,.-item{
width: 23%;
.item-title{
font-size: 14px;
}
.item-img{
width: 100%;
margin: 10px 0;
}
.item-content{
display: block;
font-size: 14px;
width: 100%;
}
}
/* 技术服务样式 */
.find-service{
background-color: #f9f9f9;
padding: 30px 0;
.service-container{
// padding: 0 50px;
// width: 1400px;
// max-width: 1226px;
width: 90%;
margin: 0 auto;
.search{
margin-top: 30px;
position: relative;
display: flex;
align-content: center;
line-height: 30px;
input{
width: 40%;
height: 30px;
font-size: 16px;
padding: 0 20px 0 10px;
}
.icon-sousuo{
position: absolute;
width: 30px;
height: 30px;
font-size: 16px;
text-align: center;
line-height: 30px;
left: 40%
}
.get-more{
font-size: 16px;
margin-left: 50px;
}
}
.service-main{
width: 100%;
display: flex;
justify-content: space-between;
h3{
font-weight: 500;
font-size: 15px;
}
.right{
margin-top: 40px;
}
.item-content{
height: 50px;
}
}
.technology,.require{
margin-top: 30px;
ul{
padding: 0;
display: flex;
width: 100%;
flex-wrap: wrap;
justify-content: space-between;
}
.get-more{
width: 20%;
height: 40px;
line-height: 40px;
margin-right: 13.3%;
}
}
a{
&:hover{
text-decoration: underline;
}
}
}
}
.week-action, .find-service,.understand-product,.recruitment{
.title{
font-size: 26px;
font-weight: 500;
}
.get-more{
color: #3c89ff;
a{
color: #3c89ff;
&:hover{
text-decoration: underline;
}
}
}
}
/* 产品样式 */
.understand-product{
background-color: #e9e9e9;
width: 100%;
.product-container{
// width: 1400px;
// max-width: 1226px;
width: 90%;
margin: 0 auto;
padding: 30px 0;
// padding-left: 50px;
// padding-right: 50px;
.item-content{
height: 80px;
}
}
}
/* 招聘样式 */
.recruitment{
// max-width: 1226px;
// width:1400px;
width: 90%;
margin: 0 auto;
// padding: 30px 50px;
padding: 30px 0;
display: flex;
align-items: center;
.get-more{
margin-left: 100px;
font-size: 26px;
}
a{
&:hover{
text-decoration: underline;
}
}
}
}
/* footer样式 */
.footer{
background-color: #e9e9e9;
.footer-container{
// max-width: 1226px;
// width: 1400px;
width: 90%;
margin: 0 auto;
// padding: 30px 50px;
padding: 30px 0;
.footer-list{
width: 100%;
.list-ul{
padding: 0;
display: flex;
font-size: 14px;
color: #5a5a5a;
}
.lis-f{
font-weight: 600;
padding: 10px;
width: 200px;
margin-right: 10%;
}
.lis-f>ul{
padding: 0;
}
.lis-s:nth-child(1){
margin-top: 10px;
}
.lis-s{
padding: 5px 0;
font-weight: lighter;
}
a{
color: #5a5a5a;
}
}
/* 选择地区样式 */
.select-area{
width: 100%;
display: flex;
flex-direction:row-reverse;
h3{
font-weight: bold;
font-size: 14px;
}
select{
height: 30px;
width: 100%;
text-align: center;
}
}
.footer-bottom{
ul{
display: flex;
padding: 0;
}
a{
display: block;
padding: 5px 10px;
color: #5a5a5a;
}
}
a:hover{
color: #3c89ff;
text-decoration: underline;
}
}
}
/* 平板电脑 */
@media screen and (max-width:1199px){
body{
overflow-x: hidden;
overflow-y: auto
}
.header{
.top-meun{
display: none !important;
}
}
.main{
.action-content,.offer-content{
width: 100%;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.service-item,.-item{
width: 48%;
.item-title{
font-size: 14px;
}
.item-img{
width: 100%;
margin: 10px 0;
}
.item-content{
display: block;
font-size: 14px;
width: 100%;
}
}
/* 技术服务样式 */
.find-service{
.service-container{
// padding: 0 50px;
.search{
display: block;
input{
width: 90%;
}
.icon-sousuo{
left: calc(95% - 40px);
top: 3px;
}
.get-more{
margin-left: 0 !important;
margin: 30px 0;
}
}
.service-main{
display: block;
.left{
display: flex;
}
.right.service-item{
position: relative;
.item-title,.item-content,.get-more{
position: absolute;
left: 105%;
}
.item-title{
top: 10px;
width: 100%;
}
.item-content{
top: 50px;
}
.get-more{
top: 100px;
width: 120%;
}
}
}
.technology,.require{
width: 100%;
ul{
flex-direction: column;
}
.get-more{
width: 50%;
}
}
}
}
}
}
/* 手机 */
@media screen and (max-width:768px){
.header{
.right{
input{
display: none;
}
.icon-sousuo.iconfont{
position: static !important;
}
}
.header-bg{
.content{
.title{
font-size: 20px;
top: 40px;
left: 0;
}
.text{
position: absolute;
color: #fff;
line-height: 40px;
top: 170px;
left: 0;
font-size: 12px;
}
span{
font-size: 12px;
}
a{
color: #fff;
&:hover{
text-decoration: underline #fff;
}
}
}
}
}
.main{
.action-content,.offer-content{
width: 100%;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.service-item,.-item{
width: 100%;
margin-top: 30px;
.item-title{
font-size: 14px;
}
.item-img{
width: 100%;
margin: 10px 0;
}
.item-content{
display: block;
font-size: 14px;
width: 100%;
}
}
/* 技术服务样式 */
.find-service{
.service-container{
.left{
.get-more{
width: 100%;
font-size: 12px;
span{
font-size: 12px;
}
}
}
}
}
.service-main{
.right.service-item{
position: static !important;
.item-title,.item-content,.get-more{
position: static !important;
}
}
}
.recruitment{
display: block !important;
.title{
font-size: 20px !important;
}
.get-more{
font-size: 16px;
margin-left: 0 !important;
}
a{
&:hover{
text-decoration: underline;
}
}
}
}
.footer{
.footer-list{
.list-ul{
display: flex;
flex-direction: column;
}
.lis-f{
padding: 0 !important;
font-weight: 600;
width: 100% !important;
ul{
margin: 10px 0 30px 0;
display: flex;
flex-wrap: wrap;
font-size: 12px;
}
}
.lis-s{
width: 50%;
}
.lis-s:nth-child(1){
margin-top: 0px !important;
}
}
.select-area{
width: 100%;
display: block !important;
font-size: 12px;
select{
display: block;
width: 100%;
}
}
.footer-bottom{
ul{
width: 100%;
display: flex;
padding: 0;
flex-wrap: wrap;
font-size: 12px;
}
li{
width: 50%;
}
}
}
}
index.html
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>仿IBM首页</title>
<link rel="stylesheet" href="./styles/iconfont.css">
<link rel="stylesheet" href="./styles/style.css">
</head>
<body>
<div id="app">
<header class="header">
<!-- 顶部菜单栏 -->
<nav class="top-nav-bar">
<section class="left">
<div class="meun-item">
<span class="iconfont icon-IBM logo"></span>
<span class="hover-bottom"></span>
</div>
<ul class="top-meun">
<li class="meun-item have-son">产品
<span class="iconfont icon-jiantou1 drop-down"></span>
<span class="hover-bottom"></span>
</li>
<li class="meun-item have-son">服务
<span class="iconfont icon-jiantou1 drop-down"></span>
<span class="hover-bottom"></span>
</li>
<li class="meun-item have-son">行业
<span class="iconfont icon-jiantou1 drop-down"></span>
<span class="hover-bottom"></span>
</li>
<li class="meun-item have-son">开发者
<span class="iconfont icon-jiantou1 drop-down"></span>
<span class="hover-bottom"></span>
</li>
<li class="meun-item">支持
<span class="hover-bottom"></span>
</li>
</ul>
</section>
<section class="right">
<input type="text" placeholder="搜索">
<span class="iconfont icon-sousuo"></span>
<div class="meun-item">
<span class="iconfont icon-wode">
<ul>
<li>我的 IBM</li>
<li>登录</li>
</ul>
</span>
<!-- <span class="hover-bottom"></span> -->
</div>
<div class="meun-item">
<span class="iconfont icon-caidan"></span>
<!-- <span class="hover-bottom"></span> -->
</div>
</section>
</nav>
<!-- 下拉子菜单 -->
<div class="drop-down-content">
<section class="left"></section>
<section class="right"></section>
</div>
<!-- 图片 -->
<div class="header-bg">
<div class="content">
<h1 class="title">智胜危机,思变未来<br>Think 2020 中国主题日</h1>
<p class="text">
加速关键的复原与转型<br><a href="#">观看精彩回放,体验 IBM 顶尖科技</a>
<span class="iconfont icon-jiantou"></span>
</p>
</div>
</div>
</header>
<main class="main">
<!-- IBM 本周活动 -->
<section class="week-action">
<h1 class="title"> IBM 本周活动 </h1>
<ul class="action-content">
<li class="-item">
<i class="item-title">IBM Cloud Paks 一岁了</i>
<img src="./images/200819-dede-cloudpaks6-444x320.webp" alt="" class="item-img">
<article class="item-content">
IBM Cloud Paks 依托红帽 OpenShift 交付,可针对关键但与达成业务目标无直接关联的用例提供预先容器化的解决方案,帮助各团队实现并提升 DevOps(开发运营)的速度。
</article>
<div class="get-more">
<a href="#">了解更多信息</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
<li class="-item">
<i class="item-title">存储 ESS 5000 发布 – 打通数据湖“淘金”通道</i>
<img src="./images/20200731144331_0.webp" alt="" class="item-img">
<article class="item-content">
2020年7月,IBM 推出面向数据湖的新一代存储解决方案 Elastic Storage System 5000 ,这款专为企业大容量数据湖而生的新一代软件定义存储产品,能够帮助企业构建 YB 级的高性能数据湖,为企业的 AI 旅程插上腾飞的翅膀!
</article>
<div class="get-more">
<a href="#">了解更多</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
<li class="-item">
<i class="item-title">抢滩“新出海时代”,平台能力方式根本</i>
<img src="./images/inside-ibm-0717-8.webp" alt="" class="item-img">
<article class="item-content">
全球宅经济降临,电商、游戏、直播、线上医疗、在线教育、远程办公等国内互联网业务出海的汽笛声,在多变的全球局势中愈加明晰。此时,无疑是企业出海抢占市场的大好时机!
</article>
<div class="get-more">
<a href="#">“宅经济”出海掘金必备指南</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
<li class="-item">
<i class="item-title">这份智慧企业路线图,由你亲手绘制!</i>
<img src="./images/444X320-1.webp" alt="" class="item-img">
<article class="item-content">
IBM 商业价值研究院携手长江商学院、 至顶网、 《商业周刊/中文版》及广大中国企业用户, 面向全行业发起「中国智慧企业路线图」绘制行动, 探索智慧企业中国路线。 您的答案将极具价值!
</article>
<div class="get-more">
<a href="#">立即参与有奖调查</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
</ul>
</section>
<!-- 技术服务 -->
<section class="find-service">
<div class="service-container">
<h1 class="title">在 IBM Marketplace 中查找产品和服务</h1>
<div class="search">
<input type="text">
<span class="iconfont icon-sousuo"></span>
<div class="get-more">
<a href="#">查看更多产品</a>
<span class="iconfont icon-jiantou"></span>
</div>
</div>
<div class="service-main">
<div class="left">
<div class="technology">
<h3>技术</h3>
<ul>
<li class="get-more">
<a href="#">IT 基础架构</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">IT 管理</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">云计算</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">人工智能</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">分析</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">区块链</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">安全</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">移动技术</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">软件开发</a>
<span class="iconfont icon-jiantou"></span>
</li>
</ul>
</div>
<div class="require">
<h3>企业需求</h3>
<ul>
<li class="get-more">
<a href="#">人力资源</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">企业运营</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">供应链管理</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">内容管理</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">协作</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">商务</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">客户服务与 CRM</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">市场营销与销售</a>
<span class="iconfont icon-jiantou"></span>
</li>
<li class="get-more">
<a href="#">金融业</a>
<span class="iconfont icon-jiantou"></span>
</li>
</ul>
</div>
</div>
<div class="right service-item">
<i class="item-title">CODE PATTERNS</i>
<img src="./images/cn-codepattern-promospot.jpg" alt="" class="item-img">
<article class="item-content">
独一无二的资源 - 基于应用场景,提供解决技术挑战的方法、流程和开源代码。
</article>
<div class="get-more">
<a href="#">一键部署,深度体验前沿技术</a><span class="iconfont icon-jiantou"></span>
</div>
</div>
</div>
</div>
</section>
<!-- 产品 -->
<section class="understand-product">
<div class="product-container">
<h1 class="title">了解产品试用和报价</h1>
<div class="get-more">
<a href="#">查看更多报价</a>
<span class="iconfont icon-jiantou"></span>
</div>
<ul class="offer-content">
<li class="-item">
<i class="item-title">IBM SPSS Statistics</i>
<img src="./images/SPSS-Statistics-card4.webp" alt="" class="item-img">
<article class="item-content">
IBM SPSS® Statistics 是强大的统计软件平台。它提供一组强大的功能,可让贵企业从数据中提取切实可行的洞察。
</article>
<div class="get-more">
<a href="#">免费试用</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
<li class="-item">
<i class="item-title">IBM Cognos Analytics</i>
<img src="./images/Cognos-Analytics-20626-700x420.png" alt="" class="item-img">
<article class="item-content">
借助由人工智能驱动的个性化分析,挖掘隐藏的洞察,使用促销代码 COGNOSGC50 在线购买享 5折优惠!
</article>
<div class="get-more">
<a href="#">开始免费试用,支持在线购买</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
<li class="-item">
<i class="item-title">IBM Aspera</i>
<img src="./images/Aspera-on-Cloud-card1.webp" alt="" class="item-img">
<article class="item-content">
IBM Aspera® 软件利用基于获奖的 IBM FASP® 协议构建的快速文件传输和流式解决方案,可跨任何距离移动任意规模的数据,其速度可能是 FTP 和 HTTP 的数百倍。
</article>
<div class="get-more">
<a href="#">免费试用</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
<li class="-item">
<i class="item-title">裸机服务器</i>
<img src="./images/Cloud-Bare-Metal-Servers-21436-700x420.png" alt="" class="item-img">
<article class="item-content">
IBM 高性能云裸机是指可通过按小时和月选项进行配置,可定制的 RAM、SSD 以及其他部件和随需应变的配置能力,以满足任何工作负载需求。
</article>
<div class="get-more">
<a href="#">了解相关产品及报价</a><span class="iconfont icon-jiantou"></span>
</div>
</li>
</ul>
</div>
</section>
<!-- 招聘 -->
<section class="recruitment">
<h1 class="title">加入 IBM,充分发挥自己的聪明才智</h1>
<div class="get-more">
<a href="#">访问 IBM 全球招聘信息</a><span class="iconfont icon-jiantou"></span>
</div>
</section>
</main>
<!-- 底部 -->
<footer class="footer">
<section class="footer-container">
<section class="footer-list">
<ul class="list-ul">
<li class="lis-f">发现
<ul>
<li class="lis-s"><a href="#">产品</a> </li>
<li class="lis-s"><a href="#">博客</a> </li>
<li class="lis-s"><a href="#">服务</a> </li>
<li class="lis-s"><a href="#">行业</a> </li>
<li class="lis-s"><a href="#">成功案例</a> </li>
<li class="lis-s"><a href="#">融资</a> </li>
</ul>
</li>
<li class="lis-f">提供信息给
<ul>
<li class="lis-s"><a href="#">开发人员</a> </li>
<li class="lis-s"><a href="#">业务合作伙伴</a> </li>
<li class="lis-s"><a href="#">软件和解决方案</a> </li>
<li class="lis-s"><a href="#">立即免费试用</a> </li>
</ul>
</li>
<li class="lis-f">联系我们
<ul>
<li class="lis-s"><a href="#">在线分公司</a> </li>
<li class="lis-s"><a href="#">支持</a> </li>
<li class="lis-s"><a href="#">联系销售代表</a> </li>
<li class="lis-s"><a href="#">联系业务合作伙伴</a> </li>
<li class="lis-s"><a href="#">特惠促销</a> </li>
</ul>
</li>
<li class="lis-f">关于 IBM
<ul>
<li class="lis-s"><a href="#">工作机会</a> </li>
<li class="lis-s"><a href="#">热点新闻</a> </li>
<li class="lis-s"><a href="#">投资者关系(英文)</a> </li>
<li class="lis-s"><a href="#">企业社会责任</a> </li>
<li class="lis-s"><a href="#">关于 IBM</a></li>
</ul>
</li>
</ul>
</section>
<!-- 选择地区 -->
<section class="select-area">
<div>
<h3>选择国家/地区</h3>
<select name="country " id="">
<option value="China">China - Chinese (Simplified)</option>
</select>
</div>
</section>
<hr>
<section class="footer-bottom">
<ul>
<li><a href="#">联系 IBM</a></li>
<li><a href="#">隐私条约</a> </li>
<li><a href="#">使用条款</a> </li>
<li><a href="#">信息无障碍选项</a> </li>
</ul>
</section>
</section>
</footer>
</div>
<script src="./script/base.js"></script>
</body>
</html>
要开始宝贵的讲解了
就是移动端,会出现右边一段空白,解决办法如下:
/*在平板的尺寸下就开始出现,而且手机尺寸下也有,解决办法就是隐藏*/
body{
overflow-x:hidden;
overflow-y:auto;
}
其他的都是基础,会基础就会做 ~~~
CSDN:https://blog.csdn.net/weixin_43148062
简书:https://www.jianshu.com/u/45339cbb7573