底层 [英] Layer at bottom

查看:58
本文介绍了底层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想创建一个100%宽,200像素高的图层并保持在屏幕底部的

,即使是页面滚动,我该怎么做?

我在网站上看过它但找不到任何示例代码


Brian

解决方案

Brian写道:



我想创建一个100%的图层宽,200像素高,并保持在屏幕的底部,即使页面滚动,我该怎么做?
我在网站上看到它,但找不到任何示例代码

Brian




你可以使用CSS:

职位:固定;





你能给我一个代码的例子吗?

我不能似乎可以让它工作:)


谢谢


Brian

" bmgz" < BM *** @ yahoo.com>在消息中写道

news:d9 ********** @ ctb-nnrp2.saix.net ...

Brian写道:



我想创建一个100%宽,200像素高的图层并保持在屏幕底部,即使页面滚动,我该怎么办这样做了吗?
我在网站上看过但却找不到任何示例代码

Brian



你可以使用CSS:
位置:固定;



Brian写道:



可以你给我一个代码的例子吗?
我似乎无法让它工作:)

谢谢

Brian

" bmgz" < BM *** @ yahoo.com>在消息中写道
新闻:d9 ********** @ ctb-nnrp2.saix.net ...

Brian写道:



我想创建一个100%宽,200像素高的图层并保持在屏幕底部,即使页面滚动,我该怎么做?我在网站上看过它但找不到任何示例代码

Brian



你可以使用CSS:
位置:固定;




请不要顶级。


职位:固定不在iewin工作。请参见:

http://www.howtocreate .co.uk / fixedPosition.html


别忘了指定DOCTYPE:

http://www.alistapart.com/stories/doctype/


Hi

I want to create a layer that 100% wide, 200 px high and stays at the
bottom of the screen, even when the page is scrolled, how do I do this?
I have seen it on websites but can''t find any example code

Brian

解决方案

Brian wrote:

Hi

I want to create a layer that 100% wide, 200 px high and stays at the
bottom of the screen, even when the page is scrolled, how do I do this?
I have seen it on websites but can''t find any example code

Brian



you can use CSS:
position: fixed;


Hi

Could you give me an example of the code to do that?
I can''t seem to get it to work :)

Thanks

Brian
"bmgz" <bm***@yahoo.com> wrote in message
news:d9**********@ctb-nnrp2.saix.net...

Brian wrote:

Hi

I want to create a layer that 100% wide, 200 px high and stays at the
bottom of the screen, even when the page is scrolled, how do I do this?
I have seen it on websites but can''t find any example code

Brian



you can use CSS:
position: fixed;



Brian wrote:

Hi

Could you give me an example of the code to do that?
I can''t seem to get it to work :)

Thanks

Brian
"bmgz" <bm***@yahoo.com> wrote in message
news:d9**********@ctb-nnrp2.saix.net...

Brian wrote:

Hi

I want to create a layer that 100% wide, 200 px high and stays at the
bottom of the screen, even when the page is scrolled, how do I do this?
I have seen it on websites but can''t find any example code

Brian



you can use CSS:
position: fixed;



Please don''t top-post.

position: fixed doesn''t work in iewin. See here:

http://www.howtocreate.co.uk/fixedPosition.html

Don''t forget to specify a DOCTYPE:

http://www.alistapart.com/stories/doctype/


这篇关于底层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆