在jQuery中显示隐藏的div

时间:2019-04-01 05:07:37

标签: jquery

我有一个网站,我有其主页HTML文件,但是不幸的是,我无法找到它的隐藏div,而我无法在页面的视图源中看到它。我是新来的,也许我的问题不合适,但是我需要您的帮助。我想针对2个视频进行一些更改。提前致谢。 我的目标代码在这里,可以通过播放来自inspect元素的视频来获取。

<div class="html5-video-container" data-layer="0"><video tabindex="-1" class="video-stream html5-main-video" controlslist="nodownload" style="width: 905px; height: 509px; left: 230.556px; top: 0px;" src="blob:https://www.youtube.com/1c547a9c-424b-42f4-a527-536078a60662"></video></div>



 <!DOCTYPE html>

<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


  <meta name="viewport" content="width=device-width,initial-scale=1.0">

  <title>Cube Animation</title>
  <meta name="description" content="Cube Animation">
    <meta name="DC.Title" content="Accueil">
    <meta name="DC.Creator" content="uncanny valley studio">
    <meta name="DC.Rights" content="uncanny valley studio">
    <meta name="DC.Publisher" content="uncanny valley studio">
    <meta name="DC.Description" content="Cube Animation">
    <meta property="og:title" content=" Cube Animation">
    <meta property="og:type" content="website">

    <meta itemprop="name" content="Cube Animation">
    <meta itemprop="description" content="Cube Animation">

  <link rel="stylesheet" href="css/bundle.css">
  <link rel="stylesheet" href="css/3d_random_builder.css">
  <style>
  #thumbholder,.logo{
    opacity:0;
     -webkit-transition: all 2s ease 0s;
    transition: all 2s ease 0s;
  }
  .showon{
    opacity:1!important;
  }
  </style>
  </head>
<body class="body" style="height: 11840px;">


<div class="toggle">
<span class="header-logo">
    <img src="images/logo-white.png">
</span>


</div>




<nav class="navigation visible" style="visibility: visible;">
    <div class="logo visible">

    <a href="#"><img src="images/logo.png"></a>
</div>
<div class="close">✕</div>

  <ul id="thumbholder">

  </ul>

 <div class="socials" style="display:none;">
<a href="" target="_blank">
<img class="instagram" src="images/instagram.svg">

</a>
<a href="" target="_blank">
<img class="facebook" src="images/facebook.svg">
</a>
</div>
</nav>
<div class="css3d-container"><div style="overflow: hidden; width: 1000px; height: 740px; position: absolute; top: 0px; perspective: 640.859px; display:none;"><div style="transform-style: preserve-3d; width: 1600px; height: 740px; transform: translateZ(640.859px) matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, -925.759, 1) translate(800px, 370px);">

<div id="allslideholder">


</div>
</div>

</div></div>
<div id="ajax-data">
<div class="face-warper" data-id="projets" data-position="0" data-ratio="big"></div>
</div>
<div class="background"></div><div class="arrow visible">
<img class="arrow-image" src="images/arrow.svg">
</div><footer></footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/16.3.5/Tween.min.js"></script>

<script src="js/loadalldata.js"></script>

<script>
$(document).ready(function(){
   loadimgdata();
})




</script>
</body>
</html>

2 个答案:

答案 0 :(得分:2)

该文件可能不在您需要在项目的其他文件中找到定义此功能的任何Java脚本文件中。

答案 1 :(得分:0)

第一件事是您需要在HTML页面的正文中添加div。然后检查您要在src中添加的URL。这是不正确的。请检查网址是否正确,或者下载视频并将其放在项目文件夹下,然后再显示。