像素特定布局 [英] Pixel Specific Layout

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

问题描述

您好。我正在制作一个我需要特定于像素的布局。怎么

我能让字体保持正确的高度吗?在px中指定

行高或字体大小并不能产生我需要的结果。当我更改浏览器的字体大小并且文本

从我需要的位置移动时,

字体大小会缩放。

解决方案

" Dave(DreamIsle)" < da ******* @ gmail.comwrites:

当我更改浏览器的字体大小和文本时,
字体大小缩放

从我需要的地方移动。



这就是HTML和网络浏览器*应该*工作的方式。


这是一种如果你在美国播放一个

的电视节目,或者如果你正在掌握的话,只能使用两个频道,就像使用NTSC安全色一样

an音频CD。您必须在所选介质的限制范围内工作。


如果您需要完美的布局,您需要使用支持

的文档格式,例如PDF格式。


sherm--


-

Perl中的Cocoa编程: http://camelbones.sourceforge.net

雇用我!我的简历: http://www.dot-app.org


我知道你必须在某些限制下工作,但如果你认为这就是HTML和网络的话,你就会充满垃圾浏览器

*假设*工作。为什么会使用像素来指定字体大小如果

字体不会保持那么大?


Sherm Pendley写道:
< blockquote class =post_quotes>
" Dave(DreamIsle)" < da ******* @ gmail.comwrites:

当我更改浏览器的字体大小和文本时,
字体大小缩放

从我需要的地方移动。



这就是HTML和网络浏览器*应该*工作的方式。


它有点像如果你在美国播放一个

的电视节目,或者如果你正在掌握的话,只能使用两个频道,就像使用NTSC安全色一样

an音频CD。您必须在所选介质的限制范围内工作。


如果您需要完美的布局,您需要使用支持

的文档格式,例如PDF格式。


sherm--


-

Perl中的Cocoa编程: http://camelbones.sourceforge.net

雇用我!我的简历: http://www.dot-app.org




Dave(DreamIsle)schreef:


你好。我正在制作一个我需要特定于像素的布局。怎么

我能让字体保持正确的高度吗?在px中指定

行高或字体大小并不能产生我需要的结果。当我更改浏览器的字体大小并且文本

从我需要的位置移动时,

字体大小会缩放。



试试flash。


Hello. I''m working on a layout that I need to be pixel specific. How
can I get the font to stay precisely the height I need? Specifying
line-height or font-size in px doesn''t yield the results I need. The
font size scales when I change the browser''s font size and the text
moves from where I need it.

解决方案

"Dave (DreamIsle)" <da*******@gmail.comwrites:

font size scales when I change the browser''s font size and the text
moves from where I need it.

That''s how HTML and web browsers are *supposed* to work.

It''s kind of like having to use NTSC-safe colors if you''re broadcasting a
TV show in the US, or being limited to two channels if you''re mastering
an audio CD. You have to work within the limitations of your chosen medium.

If you need perfect layout, you need to use a document format that supports
that, such as PDF.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


I understand that you have to work in certain limitations, but you''re
full of crap if you think that that''s how HTML and web browsers are
*supposed* to work. Why would one use pixels to specify a font size if
the font won''t stay that size?

Sherm Pendley wrote:

"Dave (DreamIsle)" <da*******@gmail.comwrites:

font size scales when I change the browser''s font size and the text
moves from where I need it.


That''s how HTML and web browsers are *supposed* to work.

It''s kind of like having to use NTSC-safe colors if you''re broadcasting a
TV show in the US, or being limited to two channels if you''re mastering
an audio CD. You have to work within the limitations of your chosen medium.

If you need perfect layout, you need to use a document format that supports
that, such as PDF.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



Dave (DreamIsle) schreef:

Hello. I''m working on a layout that I need to be pixel specific. How
can I get the font to stay precisely the height I need? Specifying
line-height or font-size in px doesn''t yield the results I need. The
font size scales when I change the browser''s font size and the text
moves from where I need it.

Try flash.


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

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