绝对定位控制 [英] Absolute positioning controls

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

问题描述




只是想知道页面上的绝对定位是否有任何劣势

控件?


在示例中,不是将文本字段放入表中以正确对齐

,而是绝对定位它们。


我理解调整大小的问题,这不是问题。


是否存在兼容性问题? ...就像有些浏览器处理不好?


TIA,


Tom

解决方案

" Tom Szabo" < to*@intersoft.net.au>写在

news:41 ******** @ dnews.tpgi.com.au:


控件是否有任何缺点?

在示例中,不是将文本字段放入表中以正确对齐
绝对定位他们。

我理解调整大小的问题,这不是问题。

是否存在兼容性问题? ...就像有些浏览器不能处理它好

TIA,

Tom




听起来你在谈论CSS而不是PHP。如果是这样,大多数

浏览器会以不同的方式处理它,有些忽略标准或使用

它们不正确,或者有些使用其他人根本不使用的样式。另外,

表已经存在了很长时间,所以你真的不会有兼容性

问题,而CSS高度依赖于浏览器类型和版本。

使用表是没有问题的,如果它可以完成工作,并且

通常更容易使用。坚持使用常见的文本样式,边框,

链接,颜色和页面格式(标题,菜单栏,页脚)。


2美分


Tom Szabo写道:



只是想知道绝对定位是否有任何劣势
控件在一个页面上?

在示例中,不是将文本字段放入表中以正确对齐
,而是绝对定位它们。




CSS很棒,我喜欢它 - 但有时候使用它只是让

毫无意义。有一个很大的动作在线使用CSS来布局没有桌子的
页面,而且我是它的拥护者,但是使用CSS

位置个别表单元素是什么都没有我会倾向于

。有时一张桌子只是要走的路,而且超过

为什么有些CSS元素设计用于

表格。


你会感到头疼,并且试图把它弄得很不满意......


J


< blockquote>谢谢Jas和theo,


我需要知道的是什么是最兼容的(使用浏览器)方式

绝对定位TEXT字段在一个页面上?


如果我别无选择但必须绝对定位一个文本字段,我应该将b / b
分配给字段本身还是包装它用DIV,Table或

别的东西?


什么可能导致最少的问题?


TIA,


Tom

" JAS" <杜************* @ gmail.com>在消息中写道

news:41 ********** @ newspeer2.tds.net ...

Tom Szabo写道:



只是想知道页面上的绝对定位
控件是否有任何缺点?

在示例中,而不是将文本字段放入表格正确对齐
,人们绝对会定位它们。



CSS很棒,我喜欢它 - 但有时候使用它只会让
无意义。在没有桌子的情况下使用CSS来布局
页面有一个大的动作,我是它的倡导者,但是使用CSS来定位单个表单元素是我永远不会倾向于
做。有时一张桌子就是要走的路,而且不仅仅是为什么有些CSS元素可以用来处理
表格。

你会得到的头痛,并且试图做对的小小的满足......

J



Hi,

Just wondering if there are any disadvantage in absolute positioning
controls on a page?

In example instead of putting the text fields into a table to align
properly, one would absolute position them.

I understand the issue with resize, that is not a problem.

Is there compatibility problem? ...like some browsers don''t handle it well?

TIA,

Tom

解决方案

"Tom Szabo" <to*@intersoft.net.au> wrote in
news:41********@dnews.tpgi.com.au:

Hi,

Just wondering if there are any disadvantage in absolute positioning
controls on a page?

In example instead of putting the text fields into a table to align
properly, one would absolute position them.

I understand the issue with resize, that is not a problem.

Is there compatibility problem? ...like some browsers don''t handle it
well?

TIA,

Tom



Sounds like you are talking about CSS instead of PHP. If so, most
browsers handle it differently, with some ignoring standards or using
them incorrectly, or some using styles that others dont at all. Plus,
tables have been around a long time so you really wont have compatability
problems while CSS is highly dependent on browser type and version. There
is nothing wrong with using a table if it will get the job done, and is
often much easier to use. Stick to CSS for common text styles, borders,
links, colors, and page formatting (headers, menu bars, footers).

2 cents


Tom Szabo wrote:

Hi,

Just wondering if there are any disadvantage in absolute positioning
controls on a page?

In example instead of putting the text fields into a table to align
properly, one would absolute position them.



CSS is great, I love it - but there are times when using it just makes
no sense. There is a big movement on-line toward using CSS to layout
pages without tables, and I am an advocate of it however using CSS to
position individual form elements is nothing I would ever be inclined to
do. Sometimes a table is just the way to go, and that more than
anything is why there are CSS elements that are designed to work with
tables.

You''ll get headaches and little satisfaction trying to get it right ...

J


Thanks Jas and theo,

What I need to find out is what is the most compatible (with browsers) way
of absolute positioning a TEXT field on a page?

If I have no choice but have to absolute position a text field, should I
assign the style to the field itself or wrap it with a DIV, Table or
something else?

what is likely to cause the least problem?

TIA,

Tom
"JAS" <du*************@gmail.com> wrote in message
news:41**********@newspeer2.tds.net...

Tom Szabo wrote:

Hi,

Just wondering if there are any disadvantage in absolute positioning
controls on a page?

In example instead of putting the text fields into a table to align
properly, one would absolute position them.



CSS is great, I love it - but there are times when using it just makes
no sense. There is a big movement on-line toward using CSS to layout
pages without tables, and I am an advocate of it however using CSS to
position individual form elements is nothing I would ever be inclined to
do. Sometimes a table is just the way to go, and that more than
anything is why there are CSS elements that are designed to work with
tables.

You''ll get headaches and little satisfaction trying to get it right ...

J



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

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