如何在许多绝对DIV之后放置页脚? [英] How do I place a footer after many absolute DIVs ???
问题描述
亲爱的,
我想知道以下问题最干净的解决方案。
我想在一个之后插入一些CSS / htm长垂直柱
的DIV绝对定位。
由于此代码是由一个节流器自动生成的,我是
寻找可能是最干净,最简单的解决方案。
我想:
- 没有参考外部样式表
- 没有解决方案我在哪里必须写一些之前和之后的东西。一些
其他代码。代码应该只在适当的位置,可能在页面的结尾处。
非常感谢,
Pam
--------------------------------- -------------------------------------------------
<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN"
" http://www.w3 .org / TR / html4 / loose.dtd">
< html>
< head>
< meta http-equiv =" content-type" content =" text / html; charset = UTF-8">
< style type =" text / css" media =" screen"
..c0bg {position:absolute ...
..c0fg {position:absolute ...
.....在很长的垂直列中有很多DIV ...
....所有DIV绝对定位
< div class = c3bg style =" top:...
< div class = c3bg style =" top:...
Q.如何我是否将以下内容放在页面底部?
< br>< p>< b>< font face =" Tahoma"大小= QUOT; 2英寸color ="#99CCFF"> Page
自动生成于...< / font>< / a>< / font>< / b>< / p>
< / body>
< / html>
Dears,
I''d like to know the cleanest solution for the following problem.
I want to insert some CSS/htm after a long vertical column
of DIVs absolutely positioned.
Since this code is generated automatically by a streamwriter, I am
looking for the cleanest and simplest solution possible.
I would like:
- No reference to external stylesheet
- No solution where I have to write something "before and after" some
other code. The code should be in on place only, possibly at the end of
the page.
Thank you very much,
Pam
----------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<style type="text/css" media="screen">
..c0bg{position:absolute...
..c0fg{position:absolute...
..... A lot DIVs here in a long vertical column ...
.... All DIVs absolutely positioned
<div class=c3bg style="top:...
<div class=c3bg style="top:...
Q. How do I place the following at the bottom of the page ?
<br><p><b><font face="Tahoma" size="2" color="#99CCFF">Page
automatically generated on ... </font></a></font></b></p>
</body>
</html>
推荐答案
pa***********@libero.it :
我想知道以下问题最干净的解决方案。
我想在一个之后插入一些CSS / htm长垂直柱
的DIV绝对定位。
I''d like to know the cleanest solution for the following problem.
I want to insert some CSS/htm after a long vertical column
of DIVs absolutely positioned.
然后你就会出问题 - 除非你知道列的高度(并且可以
绝对定位其他内容),然后你无法知道
在哪里之后是。
Then you''ve go problems - unless you know the height of the column (and can
absolutely position the other content), then you''ve no way of knowing
where "after" is.
< div class = c3bg style =" top:...
< div class = c3bg style =" ;顶部:...
<div class=c3bg style="top:...
<div class=c3bg style="top:...
关于这个主题 - 你怎么知道在...之后是为了那些div的第二个?
? (提示:用户可能会更改其字体大小)。
-
David Dorward< http://blog.dorward.me.uk/ < http://dorward.me.uk/>
首页是〜/ .bashrc的位置
On the subject of which - how do you know where "after" is for the second of
those divs? (Hint: The user might change their font size).
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
嗨David,
对于字体,没有用户无法改变大小。一切都完成
绝对是像素精度。字体是固定的,以像素为单位。
这是一个非常精确的布局(企业报告)。用户无法更改
。用户只能通过一些onclick onmousedown
事件与它进行交互。
我认为混合使用Javascript(以检索
文件)
和CSS这可以完成。
(我可以跟踪编程编写的最后一个像素,但是,如果
可能,我想避免这种复杂化。)
我会优先选择基于CSS的自包含(可能是
javascript,如有必要)
-Pam
David Dorward ha scritto:
Hi David,
As to fonts, No the user cannot change sizes. Everything is done
absolutely with pixel precision. Fonts are fixed defined in pixels.
This is a very precise layout (enterprise report). User cannot change
it. User can only interact with it with some onclick onmousedown
events.
I thought that with a mix of Javascript (to retrieve the end of the
document)
and CSS this could be done.
(I could keep track of the last pixel written programmatically, but, if
possible, I would like to avoid that complication.)
I would prefere something self contained based on CSS (and possibly
javascript, if necessary)
-Pam
David Dorward ha scritto:
pa *********** @ libero.it 写道:
pa***********@libero.it wrote:
我想知道以下问题最干净的解决方案。
我想在一个很长的垂直列之后插入一些CSS / htm
$ b $ DIV的b绝对定位。
I''d like to know the cleanest solution for the following problem.
I want to insert some CSS/htm after a long vertical column
of DIVs absolutely positioned.
然后你就会出问题 - 除非你知道列的高度(并且可以
绝对定位其他内容),然后你无法知道
在哪里之后是。
Then you''ve go problems - unless you know the height of the column (and can
absolutely position the other content), then you''ve no way of knowing
where "after" is.
< div class = c3bg style =" top:...
< div class = c3bg style =" ;顶部:...
<div class=c3bg style="top:...
<div class=c3bg style="top:...
关于这个主题 - 你怎么知道在...之后是为了那些div的第二个?
? (提示:用户可能会更改其字体大小)。
-
David Dorward< http://blog.dorward.me.uk/ < http://dorward.me.uk/>
Home是〜/ .bashrc是
On the subject of which - how do you know where "after" is for the second of
those divs? (Hint: The user might change their font size).
--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
在2006-08-20, pa *********** @ libero.it 写道:
On 2006-08-20, pa***********@libero.it wrote:
嗨大卫,
对于字体,没有用户无法改变大小。一切都完成
绝对是像素精度。
Hi David,
As to fonts, No the user cannot change sizes. Everything is done
absolutely with pixel precision.
这几乎总是一个错误。
That is almost always a mistake.
字体是固定的,以像素为单位。这是一个非常精确的布局
(企业报告)。用户无法更改它。用户只能通过一些onclick onmousedown事件与它互动
。
Fonts are fixed defined in pixels. This is a very precise layout
(enterprise report). User cannot change it. User can only interact
with it with some onclick onmousedown events.
用户可以随时更改它,除非你有某种方式绝对控制用户的浏览器和环境。
>
-
Chris FA Johnson< http://cfaj.freeshell.org>
======== ========================================== ======== =========
作者:
Shell Scripting Recipes:问题解决方案(2005,Apress)
The user can always change it, unless you have some way of
absolutely controlling the users'' browser and environment.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
这篇关于如何在许多绝对DIV之后放置页脚?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!