查看绝对定位问题 [英] Viewing problems with Absolute Positioning

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

问题描述

大家好,


我在网站上使用了div标签的绝对定位。只要有人不通过增加文本来增加文本大小(ctrl ++或通过改变浏览器设置中的字体大小),页面看起来很酷。当某人这样做时,这些图层似乎重叠,并且具有更大z值的

更高的z值弹出前面,其他图层被推回。


最明显的解决方案是防止用户增加文本大小。但是怎么做?任何帮助都将非常好

赞赏。


谢谢,

Murali。

Hello everyone,

I used absolute positioning with div tag in my website. The page looks
cool as long as someone doesn''t try to zoom in by increasing the text
size (ctrl++ or thru changing font size in browser settings). When
someone does that, the layers seem to overlap and the layer with a
greater z value pops in front and the other layers are pushed back.

The most obvious solution will be to prevent the user from increasing
the text size. But how to do that ?? any help will be greatly
appreciated.

Thanks,
Murali.

推荐答案



像素宽度的喜悦。尝试使用em单位更频繁。


我不遵循你的意思


你不能(除了在破碎的浏览器中),并且尝试是非常的馊主意。人们通常会增加他们的字体大小,因为他们无法读取以前的大小的文字!

The joy of pixel widths. Try using "em" units more often.
I dont follow what do you mean by this

You can''t (except in broken browsers), and trying is a very bad idea. People
usually increase their font size becuase they can''t read the text at the
size it was at before!




但是如何解决这个问题。我唯一可以考虑的是

将文字作为图像,以便它们的大小无法改变(我知道

这个想法很糟糕)。

我很欣赏浏览器设计师的睿智,但是如果有人想要更好地查看页面,放大

页面只是为了看看它是不是不公平页面变得乱七八糟。


还有其他更好的方法可以防止这些脏东西出现。


任何帮助都将不胜感激,

谢谢,

Murali。



But how to get around this problem. Only thing I can think about is
making the text as images so that their size cannot be changed (I know
this idea sucks).
I appreciate the sagacity of the browser designers, but is it not
unfair when someone who wants a better view of the page, zooms in on
the page only to see the page go haywire.

Is there any other better method to keep this dirty thing at bay.

Any Help will greatly be appreciated,
Thanks,
Murali.


murali写道:
murali wrote:
像素宽度的喜悦。尝试使用em单位更频繁。
The joy of pixel widths. Try using "em" units more often.


我不遵循你的意思

I dont follow what do you mean by this




CSS要求所有长度都包含一个单位。许多作者使用像素,因为他们已经习惯了。还有其他几个选项,

包括em单位 - 相对于字体大小。


-

David Dorward http://david.us-lot.org/

正在重新设计: http://stone.thecoreworlds.net/

Microsoft宣布IE已死(因此升级):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead



CSS requires that all lengths include a unit. Many authors use pixels,
becuase that is what they are used to. There are several other options,
including em units - which are relative to the font size.

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/20...ces-ie-is-dead

< br>

murali写道:

但是如何解决这个问题。我唯一能想到的就是把文字当成图像,这样它们的大小就不会改变了(我知道这个想法很糟糕)。

But how to get around this problem. Only thing I can think about is
making the text as images so that their size cannot be changed (I know
this idea sucks).




是的,这个想法非常糟糕。一个更好的解决方案是

修复设计,因此它不依赖于特定的字体大小。使用

em或%单位进行绝对定位,或使用相对定位

代替,可以解决您的问题。如果没有URL,很难非常具体。


-

要通过电子邮件发送回复,请删除(破折号)NS(短划线)。邮件发送到ns

地址会被自动删除,不会被读取。



Yes, this idea sucks pretty badly. A much better solution would be to
fix the design so it wasn''t dependent on a particular font size. Using
em or % units for absolute positioning, or using relative positioning
instead, could be solutions to your problem. It''s hard to be very
specific without a URL.

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.


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

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