禁用iframe中的滚动,但仍允许窗口中滚动吗?

时间:2018-06-28 05:05:39

标签: javascript jquery html iframe

嗨,我的网页中有一个iframe。我希望禁用iframe中的滚动,但是如果我在iframe中滚动,则网页应该滚动而不是iFrame中的内容。

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

您应该将iframe CSS更改为:result = subject.gsub( /\A # Match from the start of the string (?! # Assert that this doesn't match: \/ # a slash (abcd|efgh|ijkl|mnop) # followed by one of the allowed paths \z # that makes up the entire string ) # (End of lookahead assertion) .* # Match anything/x, '/unknown')