01.让背景图不滚动
ie浏览器支持一个 body 属性 bgproperties,它可以让背景不滚动:
〈body background="图片文件" bgproperties="fixed"〉
02.让你的网页无法另存为
<noscript><iframe src=*></iframe></noscript>
03.让iframe框架内的文档的背景透明
<iframe src="about:<body style='background:transparent'>" allowtransparency></iframe>
04.禁止右键:
<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()">
05.进入页面后立即自动刷新?
<meta http-equiv="refresh" content="120;url=http://www.xyz.com/xyz">
http://www.xyz.com/xyz,这是你自己的网址。
06.打开窗口即最大化
<script language="javascript">
<!-- begin
self.moveto(0,0)
self.resizeto(screen.availwidth,screen.availheight)
// end -->
</script>
07.能隐藏iframe的滚动条吗?我知道的三种方法:
1. 设置iframe scrolling="no"
2. 被包含页body应用overflow:hidden 即在被包含页中应用15.如何控制横向和纵向滚动条的显隐?
3. 被包含页的body标签加scroll="no"
以上就是HTML使用的一些小技巧 的详细内容,更多请关注php中文网其它相关文章!
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号