【发布时间】:2014-06-20 23:14:53
【问题描述】:
我到处搜索,到目前为止找不到特定于我想要做什么的答案。
这是一个网站,其中包含我想要复制的内容: http://theeverygirl.com/feature/emily-henderson-of-secrets-of-a-stylist
您看到左侧的贡献者文本区域了吗?它随博客文章浮动,但在到达博客文章/页脚区域的末尾时停止浮动,并且直到页面上向下滚动到足以查看博客文章时才会出现。
这是我当前想要使用的 html/css:
<html>
<head>
<style>
a:link{
color: black;
}
a:hover{
color: #83D3E8;
}
a:active{
color: #01B1D1;
}
p.small {line-height:70%;}
</style>
</head>
<body>
<div style="background:clear;border:1px clear;padding:5px 10px;margin: 5px; position: fixed; left: 0%; bottom: 12%; max-width: 130px; height: 280px;opacity: 0.6;">
<h1><span style="font-family:andada,serif;">CONTRIBUTORS</span></h1>
<hr />
<p><span style="font-family:andada,serif;">PHOTOGRAPHY BY</span></p>
<p class="small"><span style="font-family:andada,serif;"><a href="http://www.braelynjanesmith.blogspot.com" target="_blank">braelyn jane smith</a></span>
</p>
<p><span style="font-family:andada,serif;">STYLING BY</span></p>
<p class="small"><span style="font-family:andada,serif;"><a href="http://www.bluecactusstyling.com" target="_blank">joanna lynne smith</a></span></p>
<p><span style="font-family:andada,serif;">COPY BY</span></p>
<p class="small"><span style="font-family:andada,serif;"><a href="http://www.bluecactusstyling.com/about" target="_blank">joanna lynne smith</a></span>
</p>
</div>
</body>
</html>
您可以在此处实时查看:http://bluecactusstyling.com/2014/06/05/test-2-2/
有什么建议吗?请记住,我不是程序员。到目前为止,我已经通过 google 搜索和 html 构建器完成了所有这些工作。
【问题讨论】:
标签: javascript html css fixed