365备用网址,打造新闻资讯第一网!

帮助中心 广告联系

365bet体育在线

热门关键词: www.ymwears.cn  xxx  as

JS点击按钮全屏效果

来源:原创 作者:admin 人气: 发布时间:2020-07-01
摘要:function launchFullscreen(element) { if (element.requestFullscreen) { element.requestFullscreen(); } else if (element.mozRequestFullScreen) { element.mozRequestFullScreen(); } else if (element.webkitRequestFullscreen) { element.webkitReques

  function launchFullscreen(element) {

  if (element.requestFullscreen) {

  element.requestFullscreen();

  } else if (element.mozRequestFullScreen) {

  element.mozRequestFullScreen();

  } else if (element.webkitRequestFullscreen) {

  element.webkitRequestFullscreen();

  } else if (element.msRequestFullscreen) {

  element.msRequestFullscreen();

  }

  }

  body {

  background: #f39c12;

  }

  .center-on-page {

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%,-50%);

  }

  h1 {

  text-align: center;

  }

  select {

  -webkit-appearance: none;

  -moz-appearance: none;

  -ms-appearance: none;

  appearance: none;

  outline: 0;

  box-shadow: none;

  border: 0 !important;

  background: #2c3e50;

  background-image: none;

  }

  .select {

  position: relative;

  display: block;

  width: 20em;

  height: 3em;

  line-height: 3;

  background: #2c3e50;

  overflow: hidden;

  border-radius: .25em;

  }

  select {

  width: 100%;

  height: 100%;

  margin: 0;

  padding: 0 0 0 .5em;

  color: #fff;

  cursor: pointer;

  }

  select::-ms-expand {

  display: none;

  }

  .select::after {

  content: '\25BC';

  position: absolute;

  top: 0;

  right: 0;

  bottom: 0;

  padding: 0 1em;

  background: #34495e;

  pointer-events: none;

  }

  .select:hover::after {

  color: #f39c12;

  }

  .select::after {

  -webkit-transition: .25s all ease;

  -o-transition: .25s all ease;

  transition: .25s all ease;

  }

  $(function() {

  var index=0;

  var timer;

  var bgs=['http://www.sucainiu.com/themes/images/demo/500x300-1.png', 'http://www.sucainiu.com/themes/images/demo/500x300-2.png', 'http://www.sucainiu.com/themes/images/demo/500x300-3.png', 'http://www.sucainiu.com/themes/images/demo/500x300-4.png'];

  var bgColors=['#00aeff', '#00ab48', '#9c5dae', '#ae895d'];

  $('#banner li').each(function(index, el) {

  $(el).css({

  'background-image': 'url(' + bgs[index] + ')',

  'background-color': bgColors[index]

  })

责任编辑:admin

频道精选

百度新闻独家出品

新闻由机器选取每5分钟自动更新

手机: 邮箱:
联系电话: 地址: