English 中文(简体)
make tag stay stay stay
原标题:make <div> tag stay, didn t move
  • 时间:2012-05-13 08:00:18
  •  标签:
  • css
  • html

如标题所示,如何进行四舍五入。 因此,当用户浏览我们的网站时,内容正在移动,但并非部分内容。 如果说是干lement,我想要执行,那就是一个旁遮挡,那么我怎么能只用一个特别安全局的文字来做呢? (或具有超文本权)。

问题回答
<style type="text/css">
div.fixedDiv{position:fixed;top:0;left:0;}
</style>

http://jsfiddle.net/e7GfT/rel=“nofollow”

Html

<div class="wrapper">
<div class="fixed"></div>
</div>​

Css..

.wrapper { position: relative; height: 1500px; background:red; }
.fixed { position: fixed; left:0; top:50; width:100px; height:100px; background: green; }
<style>
#yourdiv{
 position:absolute;
 left:100px;
 top:150px;
}
</style>

<div id="yourdiv">Hello I m div</div>

按照你的愿望调整左上和顶上的坐标。

任何途径均可见





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签