<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>我要置顶</title> </head> <script> function getAnchor() { window.location.hash = 'topOne'; window.location.hash = 'topTwo'; } </script> <body> <a name="top"id="topOne"></a> <a name="top"id="topTwo"></a> 置顶位置 <div style="margin-top:1200px;"> </div> <a href="javascript:void(0);" onclick="getAnchor()">我要置顶</a> </body> </body> </html>
js 置顶
原创文章标签 js 置顶 最简单的置顶 iframe里 文章分类 后端开发
©著作权归作者所有:来自51CTO博客作者付离海的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章