开发者

CSS Container/Text auto resizing

i am currently building a website using HTML and and external CSS Stylesheet. I have a "container" which holds the content of my page, central to the body. What i want is that when a user adjusts the text size using there browser that the "container" automatic开发者_JAVA百科ally resizes with the text so that it stays in proportion. At the moment the text size changes but the container doesn't. I hope someone can help me with this problem.

Thanks in advance

Matt


This is a bug in IE, in other browsers e.g. Firefox, the containers will be correctly resized.

You would need to detect the browser type; then if it's IE use some fancy javascript workarounds to get it to work.

Catch browser's "zoom" event in JavaScript

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜