Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 使用iframe作为背景而不禁用鼠标手势/事件_Html_Css_Iframe - Fatal编程技术网

Html 使用iframe作为背景而不禁用鼠标手势/事件

Html 使用iframe作为背景而不禁用鼠标手势/事件,html,css,iframe,Html,Css,Iframe,因此,我制作了一个小的dat.GUI应用程序,我想在我的网站上用作背景,但当我插入它时,它要么没有使用正确的维度,要么它禁用了鼠标事件(在本例中是鼠标单击)。这就是我现在使用的: CSS: 我希望你们能帮我。如果有帮助的话,我正在尝试的网站是 提前谢谢 /* The container that contains text & buttons (this needs to be clickable as well */ .hero > .container { margin:

因此,我制作了一个小的dat.GUI应用程序,我想在我的网站上用作背景,但当我插入它时,它要么没有使用正确的维度,要么它禁用了鼠标事件(在本例中是鼠标单击)。这就是我现在使用的:

CSS:

我希望你们能帮我。如果有帮助的话,我正在尝试的网站是

提前谢谢

/* The container that contains text & buttons (this needs to be clickable as well */
.hero > .container {
  margin: 1em 0;
  height: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 60vh; 
    z-index: 2;
    top: 0;
    left: 0;
    overflow: auto;
    position: absolute;
}

/* The iframe itself */
iframe { 
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
}