jquery+glide实现全屏自适应幻灯片图片轮播效果代码

代码语言:html

所属分类:幻灯片

代码描述:jquery+glide实现全屏自适应幻灯片图片轮播效果代码

代码标签: jquery glide 全屏 自适应 幻灯片 图片 轮播

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Encode+Sans+Condensed:300,400,700'>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/glide.core.2.0.9.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/glide.theme.2.0.9.css">
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  @import url("https://fonts.googleapis.com/css?family=Encode+Sans+Condensed:300,400,700");
  font-family: "Encode Sans Condensed", sans-serif;
  font-size: 1rem;
}

.page {
  overflow: hidden;
}
.page header {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100vh;
  -o-object-fit: cover;
     object-fit: cover;
}

@media screen and (max-width: 500px) {
  .glide__arrows {
    display: none;
  }
}
</style>


</head>

<body >
  <div class="page">
  <header>
    <div id="Glide" class="glide">
      <!-- ARROWS -->
      <div class="glide__arrows">
        <button class="glide__arrow prev".........完整代码请登录后点击上方下载按钮下载查看

网友评论0