作者 lihongjuan

23434

*{
margin:0;
padding: 0;
}
.swiper-container{
margin-top:100px;
}
.swiper-slide{
width:1920px;
width:100%;
height:640px;
position: relative;
}
#common-nav{
/*height:131px;*/
}
.containerbox{
/*height:100%;*/
padding: 21px 32px;
box-sizing: border-box;
}
img{
width:100%;
height:100%
}
.seenow{
width:123px;
height:39px;
background:rgba(239,196,0,1);
opacity:1;
color:#fff;
font-size: 19px;
text-align: center;
line-height: 39px;
position: absolute;
top:70%;
left:20%;
z-index:999
}
.phonelist{
padding:0 14px;
box-sizing: border-box;
display:flex;
align-items: center;
justify-content: flex-end;
}
.shuru{
width:258px;
height:24px;
line-height: 24px;
overflow: hidden;
border:1px solid #BDC4CE;
border-radius: 90px;
padding: 0 12px;
box-sizing: border-box;
display:flex;
align-items: center;
justify-content: space-between;
margin-left:37px;
}
.entershu{
width:200px;
/*height:24px;*/
}
.qiehuan{
width:44px;
height:23px;
background:#2D70EF ;
border-radius: 12px;
color:#F9F9F9;
font-size: 16px;
text-align: center;
line-height: 23px;
margin-left:22px;
}
.entershu input{
width:100%;
height:100%;
border:none;
outline: none;
}
.souimg{
width:16px;
height:22px;
font-size: 0;
}
/*头部标题*/
.phoneimg{
width:26px;
height:26px;
font-size: 0;
float:right
}
.phonenum{
color:#5B5E63;
font-size: 26px;
margin-left:8px;
}
.toubu{
width:86px;
height:81px;
font-size: 0;
}
.toubuname{
color:#333;
font-size:20px;
font-weight: bold;
margin-right:20px;
/*float:left;*/
}
.navbar-brand{
margin-bottom:12px;
/*float:left;*/
}
/*
* 页数按钮样式
*/
.page_div a {
min-width: 30px;
height: 28px;
border: 1px solid #dce0e0!important;
text-align: center;
margin: 0 4px;
cursor: pointer;
line-height: 28px;
color: #666666;
font-size: 13px;
display: inline-block;
}
#firstPage,
#lastPage {
width: 50px;
color: #0286FF;
border: 1px solid #0286FF!important;
}
#prePage,
#nextPage {
width: 70px;
color: #0286FF;
border: 1px solid #0286FF!important;
}
.page_div .current {
background-color: #0286FF;
border-color:#0286FF;
color: #FFFFFF;
}
.totalPages {
margin: 0 10px;
}
.totalPages span,
.totalSize span {
color: #0073A9;
margin: 0 5px;
}
/***************************************/
.navbar-toggle{
background:#8EC63F ;
opacity: 0.4;
}
.navbar-inverse .navbar-toggle:hover {
background:#8EC63F ;
opacity: 0.4;
}
.navbar-right{
width:85%;
margin-top:5px;
}
.navbar-right li{
padding: 0 14px;
}
.navbar-inverse {
background:#fff;
box-shadow:0px 4px 8px 0px rgba(78,78,78,0.1);
border:none;
}
.navbar-inverse .navbar-nav > li > a {
color: #171717;
}
.navbar-inverse .navbar-nav > li > a.navactive {
color: #2D70EF;
position: relative;
}
.navbar-inverse .navbar-nav > li > a.navactive:before{
content:'';
display:block;
width:72px;
height:2px;
background: #2D70EF ;
position: absolute;
left:50%;
transform: translateX(-50%);
bottom:-20px;
}
/*.navbar-inverse .navbar-nav > li > a:hover{*/
/* color: #171717;*/
/* font-weight: bold;*/
/*}*/
.navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:focus, .navbar-inverse .navbar-nav > .open > a:hover {
color: #fff;
background-color: transparent;
}
.navbar-inverse .navbar-toggle {
border:none ;
}
/*.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover{*/
/*background:transparent;*/
/*}*/
.navbar-header{
border:none;
}
.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
border: none;
background:rgba(255,255,255,0.5);
}
.indexcourael li em{
display: inline-block;
width: 8px;
height: 8px;
/*margin: 1px;*/
text-indent: -999px;
cursor: pointer;
background-color:#fff;
border: 1px solid #fff;
border-radius: 10px;
position: absolute;
top:10%;
left:0;
right:0;
margin: 0 auto;
}
.indexcourael li{
display: inline-block;
width: 12px;
height: 12px;
text-indent: -999px;
cursor: pointer;
background-color: transparent ;
border: none;
border-radius: 10px;
position: relative;
}
.indexcourael .active em{
width: 6px;
height:6px;
background-color: #fff;
position: absolute;
top:24%;
left:0;
right:0;
margin: 0 auto;
}
.indexcourael .active {
width: 15px;
height: 15px;
margin: 0;
background: transparent;
border:1px solid #fff;
}
.indexcourael{
bottom:55px;
}
.positionlist a{
color:#999999;
font-size: 18px;
}
/*关于我们*/
.beyellow{
width:470px;
height:182px;
background: #EFC400;
position: relative;
margin-top:299px;
}
.beiimg{
width:473px;
height:314px;
font-size: 0;
position: absolute;
left:18px;
bottom:18px;
z-index:999
}
.guanyuourtop{
color:#3D444D;
font-size: 40px;
font-weight: bold;
}
.guanyuourbottom{
color:#3D444D;
font-size: 25px;
/*margin-top:2px;*/
}
.guanyuour{
margin-top:144px;
position: relative;
padding-left: 10px;
}
.guanyuour:before{
display:block;
content:'';
position: absolute;
top:0;
left:0;
width:2px;
height:90px;
background:#2D70EF ;
}
.introtext{
width:573px;
height:130px;
color:#3D444D;
font-size: 16px;
margin-top:35px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 6;
overflow: hidden;
}
.seegengduo{
width:131px;
height:30px;
background:rgba(45,112,239,1);
opacity:1;
color:#fff;
font-size: 16px;
text-align: center;
line-height: 30px;
margin-top:25px;
}
.aboutwomen{
padding-bottom:181px ;
/*background:#F0F9FD;*/
}
.womencontainer{
background: #FFFFFF;
}
.kefutop{
width:40px;
height:40px;
font-size: 0;
background:#2D70EF ;
border-radius: 4px;
padding: 8px;
box-sizing: border-box;
}
.dingbu{
margin-top:14px;
}
.kefubox{
position: fixed;
right:5%;
top:85%;
}
.ourproduct{
background:#F0F9FD;
padding: 71px 0 92px;
box-sizing: border-box;
}
.pronametop{
color:#5B5E63;
font-size: 40px;
font-weight: bold;
text-align: center;
}
.pronamebottom{
text-align: center;
color:#5B5E63;
font-size: 25px;
}
.protoppic{
width:376px;
height:376px;
font-size: 0;
}
.propicname{
color:#3D444D;
font-size: 22px;
text-align: center;
font-weight: bold;
margin-top:23px;
}
.propictext{
color:#5B5E63;
font-size: 16px;
width:300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
margin:5px auto 0;
}
.propicbottom{
padding: 23px 20px 52px;
box-sizing: border-box;
}
.pronum{
margin-top:54px;
}
... ...
此 diff 太大无法显示。
@media (max-width: 750px) {
.phonelist {
display:none
}
}
@media (min-width:768px) {
.navbar-nav {
float: left;
margin: 0
}
.navbar-nav>li {
float: right
}
.navbar-nav>li>a {
padding-top: 15px;
padding-bottom: 15px
}
}
... ...
... ... @@ -214,7 +214,7 @@
transition: 300ms opacity;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
z-index: 10;
z-index: 99;
}
.swiper-pagination.swiper-pagination-hidden {
opacity: 0;
... ... @@ -273,8 +273,10 @@
height: 8px;
display: inline-block;
border-radius: 100%;
background: #000;
border:2px solid #fff;
opacity: 0.2;
background: transparent;
}
button.swiper-pagination-bullet {
border: none;
... ... @@ -291,7 +293,7 @@ button.swiper-pagination-bullet {
}
.swiper-pagination-bullet-active {
opacity: 1;
background: #007aff;
background: #fff;
}
.swiper-container-vertical > .swiper-pagination-bullets {
right: 10px;
... ...

415 字节

<!DOCTYPE html>
<html lang="zh-CN">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
... ... @@ -7,39 +7,225 @@
<title>首页</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/swiperthree.css">
<link rel="stylesheet" href="css/swiperfour.css">
<link rel="stylesheet" href="css/common.css">
</head>
<body>
<div class="container">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="image/banner.png" alt="">
<!--头部导航-->
<nav id="common-nav" class="navbar navbar-inverse navbar-fixed-top">
<div class="container containerbox">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="toubu">
<img class="navbar-logo" src="image/logo.png">
</div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<div class="nav navbar-nav navbar-right phonelist">
<div class="phoneimg">
<img src="image/phone.png" alt="">
</div>
<div class="phonenum">022-89999999</div>
<div class="shuru">
<div class="entershu">
<input type="text">
</div>
<div class="souimg">
<img src="image/sousuo.png" alt="">
</div>
</div>
<div class="qiehuan">EN</div>
</div>
<ul class="nav navbar-nav navbar-right navtou">
<li>
<a href="{:url('portal/invitePeople/viewOfPeople')}">
联系我们
</a>
</li>
<li>
<a href="">
资料下载
</a>
</li>
<li>
<a href="">
主要服务
</a>
</li>
<li>
<a href="" >
产品系列
</a>
</li>
<li>
<a href="">
公司介绍
</a>
</li>
<li>
<a href="" class="navactive">网站首页</a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="swiper-container" >
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="image/banner.png" alt="">
<!-- <div class="seenow">立即查看></div>-->
</div>
<div class="swiper-slide">
<img src="image/banner.png" alt="">
<!-- <div class="seenow">立即查看></div>-->
</div>
<div class="swiper-slide">
<img src="image/banner.png" alt="">
<!-- <div class="seenow">立即查看></div>-->
</div>
</div>
<div class="swiper-pagination"></div><!--分页器。如果放置在swiper-container外面,需要自定义样式。-->
</div>
<!-- 关于我们-->
<div class="womencontainer">
<div class="container">
<div class="row aboutwomen">
<div class="col-md-6 col-sm-12">
<div class="beyellow">
<div class="beiimg">
<img src="image/beijing.png" alt="">
</div>
</div>
</div>
<div class="col-md-6 col-sm-12">
<div class="guanyuour">
<div class="guanyuourtop">ABOUT US</div>
<div class="guanyuourbottom">关于我们</div>
</div>
<div class="introtext">
天津小黄人智能科技有限公司是一家以工业自动化产品维修、
销售的高新科技企业,拥有专业发那科维修设备,完善的产品
检测设备和强大的售后团队。主要经营发那科设备检测平台搭建,
开通功能,发那科设备快修保养及销售,主要经营包括: 交流伺服
放大器、伺器电源、伺服电机、主轴电机、 编码器、手摇脉冲发生器
、 控制板,MDI 单元、操作面板、触摸屏等产品。
天津小黄人智能科技有限公司是一家以工业自动化产品维修、
销售的高新科技企
</div>
<div class="seegengduo">查看更多>></div>
</div>
</div>
</div>
</div>
<!--我们的产品-->
<div class="ourproduct">
<div class="container">
<div class="proname">
<div class="pronametop">our product</div>
<div class="pronamebottom">我们的产品</div>
</div>
<div class="row pronum">
<div class="col-md-4">
<div class="protoppic">
<img src="image/xitong.png" alt="">
</div>
<div class="propicbottom">
<div class="propicname">
系统
</div>
<div class="propictext">0i系统、18i-21i系统、31i-32i系统、显示器</div>
</div>
</div>
<div class="swiper-slide">
<img src="image/banner.png" alt="">
<div class="col-md-4">
<div class="protoppic">
<img src="image/dianji.png" alt="">
</div>
<div class="propicbottom">
<div class="propicname">
电机
</div>
<div class="propictext">主轴电机、伺服电机</div>
</div>
</div>
<div class="swiper-slide">
<img src="image/banner.png" alt="">
<div class="col-md-4">
<div class="protoppic">
<img src="image/qudongqi.png" alt="">
</div>
<div class="propicbottom">
<div class="propicname">
驱动器
</div>
<div class="propictext">电源驱动、主轴驱动、伺服驱动、一体化驱动</div>
</div>
</div>
</div>
<div class="swiper-pagination"></div><!--分页器。如果放置在swiper-container外面,需要自定义样式。-->
</div>
</div>
<!--客服-->
<div class="kefubox">
<div class="kefutop">
<img src="image/kefu.png" alt="">
</div>
<div class="kefutop dingbu">
<img src="image/top.png" alt="">
</div>
</div>
</body>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/swiper4.min.js"></script>
<script type="text/javascript" src="js/swiperfour.min.js"></script>
<script>
var mySwiper = new Swiper('.swiper-container',{
var mySwiper = new Swiper ('.swiper-container', {
loop: true,
// autoplay:true,
// duration:1000,
// 如果需要分页器
pagination: {
el: '.swiper-pagination',
clickable :true,
loop : true,
},
})
$("a").mouseenter(function(){
console.log(9999)
$(this).addClass("navactive");
$(this).parents("li").siblings("li").children("a").removeClass("navactive")
})
</script>
</html>
... ...