锁定页面宽度 [英] Lock the page-width

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

问题描述

大家好!


我遇到问题 www.suneworld.com

问题是我想要锁定页面的宽度,这样它就不会是
动态调整。


任何可以帮助我的CSS人员?


亲切的问候,

Sune Alexandersen

www.suneworld.com

Skype:sunepune

MSN: su ********* ***@suneworld.com

Hi All!

I''m having problems with www.suneworld.com
The thing is that I''d like to lock the width of the page, so that it won''t
adjust dynamically.

Any CSS people out there that can help me?

Kind regards,
Sune Alexandersen

www.suneworld.com
Skype: sunepune
MSN: su************@suneworld.com

推荐答案

文章Sune A写道:
In article Sune A wrote:
大家好! br />
我在使用 www.suneworld.com 时出现问题<事情是,我想锁定页面的宽度,以便它不会动态调整。
Hi All!

I''m having problems with www.suneworld.com
The thing is that I''d like to lock the width of the page, so that it won''t
adjust dynamically.




嗯。为什么。通常人们需要CSS来让其他人的网站动态调整
。固定宽度是个坏主意。 Givin它最大宽度很小

更好。


无论如何,你可以使用max-width来设置页面的最大值。但是根据页面的部分而不是整体来设置最大宽度要好得多。并且它对于文字行来说通常最明智的是。


例如

p,li {max-width :30em;}

-

Lauri Raittila< http://www.iki.fi/lr> < http://www.iki.fi/zwak/fonts>

Saapi l?hett ?? meili?,jos aihe ei liity ryhm ?? n,tai on yksityinen

tjsp。,mutta?l? L·海特? samaa viesti? meilitse ja ryhm ?? n。



Hm. Why. Usually people need CSS to make other peoples websites adjust
dynamically. Fixing width is bad idea. Givin it maximum width is little
better.

Anyway, you can use max-width to set maximum with of page. But it is much
better to set max-width based by parts of page, rather than whole. And it
is usually most sensible for text lines that come too long.

For example
p,li {max-width:30em;}
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi l?hett?? meili?, jos aihe ei liity ryhm??n, tai on yksityinen
tjsp., mutta ?l? l?het? samaa viesti? meilitse ja ryhm??n.


On Mon,10 Nov 2003 20:13:48 +0100,Sune A写道:
On Mon, 10 Nov 2003 20:13:48 +0100, Sune A wrote:
大家好!

我在使用时遇到问题www.suneworld.com
我想锁定页面的宽度,以便它不会动态调整。
Hi All!

I''m having problems with www.suneworld.com
The thing is that I''d like to lock the width of the page, so that it won''t
adjust dynamically.




我和其他大多数人一样,我打赌会更喜欢可调整大小的内容

区域。


你的网站看起来很漂亮对我好,除了导航栏向下延伸

超过右下方的底部。一个战略性的明确:右边将修复

但是。



I, along with most others I would bet would prefer a resizeable content
area.

Your site looks pretty good to me, other than the nav bar extending down
past the bottom on the right. A strategically placed clear:right will fix
that though.


>我遇到了 www.suneworld.com
的问题问题是我想要锁定页面的宽度,以便
不会动态调整。

任何可以帮助我的CSS人员?
The thing is that I''d like to lock the width of the page, so that it won''t adjust dynamically.

Any CSS people out there that can help me?




你可能会让别人告诉你,做这件事是'坏事'

但这是你的电话和它很容易实现。你可以在css的主体上设置一个

'''''',或者更好地用

div包围你的页面并设置一个宽度(原因)我说那是因为我好像记得看到它说老版本的IE不能兑现身体上的

宽度。


一种折衷的方法是设置一个''min-width''而不是宽度,所以

它只会减少到目前为止但可以放大。但是IE

并不支持这个(虽然有一个JavaScript软件可以用来模仿它)。



You''ll probably get people telling you it is ''a bad thing'' to do this
but it is your call and it is easily achieved. You can simply set a
''width'' on the body in css, or better still surround your page with a
div and set a width on that (the reason I say that is because I seem
to remember seeing it said that older versions of IE don''t honour the
width on the body).

A compromise approach is to set a ''min-width'' instead of the width so
that it will only reduce so far but can be enlarged. However IE
doesn''t support this (though there is a JavaScript fudge about to
emulate it).


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

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