本文介绍了溢出不是自动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我有一个简单的测试文档,在Mozilla和Opera中生成以下内容: http://terrainformatica.com/w3/p2/problem1.png Internet Explorer的行为符合建议(我猜) 我是否错过了一些东西,段落的宽度可以设置为小于其内容 (没有溢出规格)? 文件在这里: http://terrainformatica.com/ w3 / p2 / problem1.htm 提前致谢。 Andrew Fedoniouk。 http://terrainformatica.com I have a simple test document which producethe following in Mozilla and Opera: http://terrainformatica.com/w3/p2/problem1.pngInternet Explorer behaves as per recommendation (I guess) Did I miss something and width of paragraph can be set less than its content(without overflow specification)? Document is here: http://terrainformatica.com/w3/p2/problem1.htm Thanks in advance. Andrew Fedoniouk. http://terrainformatica.com 推荐答案 必须在某处设置溢出,即使某处是浏览器 默认值。 http://www.w3.org/TR/CSS2/visufx.html#overflow ''溢出'' 初始:可见 可见 此值表示内容未被剪裁,即它可能是在块盒外面呈现的。 - 所以Mozilla和Opera正在做The Rig ht Thing。 - David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/> Overflow must be set somewhere, even if that somewhere is the browserdefault. http://www.w3.org/TR/CSS2/visufx.html#overflow''overflow''Initial: visible visibleThis value indicates that content is not clipped, i.e., it may berendered outside the block box. - So Mozilla and Opera are doing The Right Thing. --David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> 众所周知,MSIE 5+不支持溢出:可见 方式CSS2规范。定义了这个声明。 DU It is widely known that MSIE 5+ does not support overflow: visible theway the CSS2 spec. defined that declaration. DU 对吧?!right?! 必须在某处设置溢出,即使某处是浏览器默认。 http: //www.w3.org/TR/CSS2/visufx.html#overflow ''溢出''初始:可见 可见此值表示内容未被剪裁,即它可能会在块框外呈现。 - 所以Mozilla和Opera正在做正确的事。 - David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/> Overflow must be set somewhere, even if that somewhere is the browser default. http://www.w3.org/TR/CSS2/visufx.html#overflow ''overflow'' Initial: visible visible This value indicates that content is not clipped, i.e., it may be rendered outside the block box. - So Mozilla and Opera are doing The Right Thing. -- David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> 这篇关于溢出不是自动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-03 07:15