在网页中放随下拉键移动的图片?

来源:百度知道 编辑:UC知道 时间:2024/06/20 15:22:52
我想在网页中放一图片。可以随页面下拉页往下移动,往上拉也随着往上移动。

就如下网站中右边的“脑筋急转弯”一样
http://www.52ps.cn/car1_121_140.htm
(注明:此网站为我爱评书网,绝无病毒)

请问哪位知道怎么做。

网上大部分都太长,给你个简单的.
<!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>
<style type="text/css">
<!--
#bottomright{
position:fixed!important;
position:absolute;
right: 0;
bottom: 0;
top: expression(offsetParent.scrollTop + offsetParent.clientHeight - 96);
}
-->
</style>
</head>

<body>
<h1>固定在右下角的图片</h1>
<div id="b