这是我的tumblr博客:thestorywithnoending.tumblr.com
我想要一个围绕图像标题的框架,这样当我向下滚动时,内容会消失,但标题会留在原处……
就像这个博客一样:
tiredskin.tumblr.com
但我不知道该怎么做,
请帮帮忙,
谢谢。
发布于 2010-12-29 11:49:17
这是你需要做的..在当前代码中替换此代码
</style>
<body>
<p><center><a href="http://thestorywithnoending.tumblr.com"><img src="http://michaeljamess.webs.com/blogheader.png" border="0"/></a></center>
</p>有了这个
<style type="text/css">
#left {
float: left;
margin-left:338px;
width: 500px;
height: 100px;
font-size: 11px;
text-align:left;
position:fixed;
background-color:none;
padding:0px;
z-index:999;
top:0px;
}
#content{
margin-top:300px!important;
}
</style>
<div id="left">
<center>
<a href="http://thestorywithnoending.tumblr.com">
<img src="http://michaeljamess.webs.com/blogheader.png" border="0"/>
</a>
</center>
</div>附注:如果它解决了您的问题,请将其标记为最佳答案:)
https://stackoverflow.com/questions/4551266
复制相似问题