如何将广告悬停在网页上?

时间:2011-03-15 01:21:03

标签: css

我在谈论其中一些网站的“Twitter”或“反馈”在滚动条或页面底部悬停。我知道这是一种CSS,但不确定哪种。

提前感谢您的帮助!

2 个答案:

答案 0 :(得分:1)

.something {
  background-color: #ccc;
  width: 40px;
  height: 40px;
  overflow: hidden;
  position: fixed;
  bottom:10px;
  right: 10px;
  margin: 0px;
  padding: 0px;
}

PS:获取firefox和firebug。

您可以右键单击所看到的任何内容,然后在那里查看css。 http://getfirebug.com

答案 1 :(得分:0)

您需要position: fixedbottom: 0 无论滚动条如何,position: fixed都会在视口中修复它。

相关问题