最新消息:本站所有跳转向bbs.ykit.cn的附件将全面停止,附件已转移到https://www.qingsj.com

禁止html框架移动的方法

html 有客 1112浏览

<html>

<frameset cols=”50%,*,25%”>
<frame src=”/example/html/frame_a.html” noresize=”noresize”/>
<frame src=”/example/html/frame_b.html” />
<frame src=”/example/html/frame_c.html” />
</frameset>

</html>

上面的代码中noresize=”noresize”是禁止框架移动的代码,在使用frame调用html文件时,添加noresize=”noresize”可以禁止网页移动。

转载请注明:有客帮 » 禁止html框架移动的方法