接任务,赚取用不完的金币中国教程网
《Photoshop专家讲堂》光盘热售
参与论坛活动,快速赚取金币精品素材,中英文字体
发新话题
打印

菜鸟求助!!!

菜鸟求助!!!


因为要帮论坛做EXE格式的电子书,所以要做一些简单的网页,现在我遇到了一个问题.就是我想让文字随着滑动条在下面图片上的那个红边框里滑动.文字不要在图片的最上端消失,而是在红框的边上消失.这个问题我知道应该不是什么难的问题,但是看在我是个只学了1个礼拜视频教程的新手,哪位大人能不吝赐教~~如果在论坛上说不清,请加我的QQ:539650228,验证写HTML就可以,谢谢大家!!#@#$*$

[IMG]http://i159.photobucket.com/albums/t150/somalong13/1-3.jpg[/IMG]

在你那个框里应用一个框架

如下:

主页
复制内容到剪贴板
代码:
<!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=gb2312" />
<title>my home page</title>
<style>
body{ background: url(http://i159.photobucket.com/albums/t150/somalong13/1-3.jpg) no-repeat fixed;
}
.main{ margin-left:50px;
       margin-top:50px;
           width:740px;
}
</style>
</head>

<body>
<div class="main">
<iframe frameborder="0" scrolling="auto" height="500" width="750px" src="content.htm" allowtransparency="ture">

</iframe>
</div>
</body>
</html>
内容页
复制内容到剪贴板
代码:
<!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=gb2312" />
<title>我是内容</title>
</head>

<body bgcolor="transparent">

<p>sdfas
  asdfafasdsd
  asdf
  asdfaasdf
  阿速度发送</p>
<p>fgsd</p>
<p>adsf</p>
<p>sadf</p>
<p>asdf</p>
<p>asd</p>
<p>fasdfasdfasd</p>
<p>&nbsp;</p>
<p>sdfasdfasd</p>
<p>sdafasdf</p>
<p>asdfasdfasd</p>
<p>asdfasdf</p>
<p>asdfasdfas</p>
<p>sdfasdf</p>
<p>asdfasdf</p>
<p>asdfasdf</p>
<p>asdf</p>
</body>
</html>
你觉得不合适的可以调整宽度和高度

[ 本帖最后由 寅生 于 2007-4-2 20:13 编辑 ]
快乐学习!

哇。高手!呵呵!
发新话题 返回列表