嗨,我的网页中有一个iframe。我希望禁用iframe中的滚动,但是如果我在iframe中滚动,则网页应该滚动而不是iFrame中的内容。
有人可以帮忙吗?
答案 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')