如何在Iframe中禁用触摸屏上的垂直滚动

时间:2016-08-24 18:24:01

标签: html css iframe

我有这个:



#outerdiv
{
  width:254px;
  height: 75px;
  overflow:hidden;
  position:relative;
  margin: 0 auto;
  margin-top: 23px;
}

#inneriframe
{
  position:absolute;
  top:-175px;
  left:-870px;
  width:1280px;
  height: 261px !important;
}

<div id='outerdiv' class='well'>
  <iframe target='_blank' id='inneriframe' scrolling='no' style='border:none;scroll:none;' id='if' sandbox='allow-forms allow-scripts' src='http://sec.com'></iframe>
</div>
&#13;
&#13;
&#13;

这将仅显示Iframe内容的选定区域。 我无法水平滚动内部iframe,这就是我想要的 我可以滚动内容垂直:/

如何禁用它,以便没有人可以在Iframe中滚动页面?

0 个答案:

没有答案