我有一个id = now的div,这个div是空的,没有任何css属性(没有宽度,没有高度,只有一个隐藏的div).我想在浏览器完成加载页面时,然后立即滚动到此div.用户不需要点击某些东西.
这是我的HTML
<html>
<div>Long div Lorem ipsum</div>
<div id="now"></div>
<div>Long div Lorem ipsum</div>
Run Code Online (Sandbox Code Playgroud)
如何用jquery做到这一点?
我在 iframe 中有一个页面和另一个 html 页面。在这个 iframe 中,我放置了这个标头标签
<META http-equiv="Pragma" content="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta http-equiv="cache-control" content="no-cache" />
Run Code Online (Sandbox Code Playgroud)
但 chrome 仍然缓存它,当 iframe 内容更改时,点击 f5 按钮,但 chrome 仍然加载缓存版本,而不是新版本。
请告诉我如何防止 google chrome 缓存此 iframe。