Javascript之让图片固定在一个位置

加粗部分为重点,必须有。
<!DOCTYPE html PUBLIC

  "-//w3c//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>

<style>
  #tu{
    position:fixed;
    top:100px;
    right:100px;}

</style>
<body>
  <textarea cols="1000" rows="1000"/>
  <img src="" id="tu">
</body>

posted on 2013-02-11 20:07  lee0oo0  阅读(778)  评论(0编辑  收藏  举报