Html 将Iframe的滚动条设置为底部

Html 将Iframe的滚动条设置为底部,html,iframe,Html,Iframe,在我的应用程序中,Iframe包含一些日志文件内容。因为我总是对最新的日志感兴趣。我总是希望滚动条保持在底部。我怎样才能做到这一点 <IFRAME src="/results/show_client_log?testinstanceId=<%=params[:testinstanceId]%>&clientIp=<%=params[:clientIp]%>" id= "frame" style="width:100%;" height=500px s

在我的应用程序中,Iframe包含一些日志文件内容。因为我总是对最新的日志感兴趣。我总是希望滚动条保持在底部。我怎样才能做到这一点

    <IFRAME src="/results/show_client_log?testinstanceId=<%=params[:testinstanceId]%>&clientIp=<%=params[:clientIp]%>" id= "frame" style="width:100%;" height=500px scrolling="yes"></IFRAME>


这是启用滚动条到iframe的代码

将此添加到iframe中的样式部分是否有效

overflow: auto;
甚至可能

overflow-x:scroll;

overflow-y:scroll;