开发者

How to put a link on the bottom right hand side of a page

I am currently using the following code to do it.

<span style="position: absolute; bottom: 0pt; right: 0pt;">
  Load time: 1.1920928955078E-5 seconds</span>

Th开发者_开发知识库e problem I am having is that if the page is scrollable then it is midway through the page. I am sure that there is a simple solution for this, but I can't come up with it.

Any help or suggestions would be greatly appreciated.


You'll need the div have position fixed instead of absolute.

Fiddle: http://jsfiddle.net/hqkm7/


<\span style="position: absolute; bottom: 0pt; right: 0pt;">Load time: 1.1920928955078E-5 seconds<\/span>

should be

<span style="position: absolute; bottom: 0pt; right: 0pt;">Load time: 1.1920928955078E-5 seconds</span>


you need to use position:fixed instead of position:absolute. position:absolute does not scroll with the page while positions:fixed does (by taking your span out of the flow of the page).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜