开发者

CSS Container/Text auto resizing

开发者 https://www.devze.com 2023-01-25 14:43 出处:网络
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 th

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

精彩评论

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