本文介绍了&QUOT;(非)取代&QUOT ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! -----开始PGP签名消息----- 哈希:SHA1 HTML规范说已替换和未替换的元素,但是对于我的生活来说,我不能找到替换的解释。 应该在这种情况下意味着什么。有人可以解释一下吗? TIA ----- BEGIN PGP SIGNATURE ----- 版本:PGP 8.1 - 未获得许可商业用途: www.pgp.com iQA / AwUBQdAS7 + sywKfXgqKdEQJDPwCbBa2cnAhx8fqlTMbW8ZPLWw n3KnUAoLZm EJsX4AxbSG4JS8KpxV1l4hpt = xZUA ----- END PGP SIGNATURE ----- - Sander Tekelenburg,< http://www.euronet.nl/%7Etekelenb/> 解决方案 < http://www.w3.org/TR/html4/struct/objects.html#h-13.2> " IMG元素没有内容;它通常由src属性指定的 图像内联替换 < http://www.w3.org/TR/CSS21/ conform.html#被替换元素> 替换元素 CSS格式化程序仅知道内部 维度的元素。在HTML中,IMG和OBJECT元素可以替换为元素。 例如,IMG元素的内容通常被 图像替换为src。属性指定。 我想它也适用于表单小部件。 Matthias ----- BEGIN PGP签名消息----- 哈希:SHA1 文章< 33 ****** *******@individual.net>, Matthias Gutfeldt< sa ************ @ gmx.net>写道: [...] 谢谢。 好​​的,所以SPAN元素显然是一个未被替换的元素。现在,如果我要说一个带背景的*空* SPAN元素 图像将是一个替换元素,你会说什么? ----- BEGIN PGP SIGNATURE ----- 版本:PGP 8.1 - 未获得商业用途许可: www.pgp.com iQA / AwUBQdBDzusywKfXgqKdEQIQGQCdFwwLlfKMnat8stkx1wWBh4 rNgt0An3Th QJsULRX0HErOpTlpgPYTtJwn = MUx + -----结束PGP SIGNATURE ----- - Sander Tekelenburg,< http:// www。 euronet.nl/%7Etekelenb/> 它不是'' T。背景图像不是IMG元素,未替换的 元素的尺寸不是由用于 的图像尺寸决定的它的背景。换句话说,带有背景图像的跨度仍然不具有内在尺寸。 -----BEGIN PGP SIGNED MESSAGE-----Hash: SHA1The HTML specs speak of "replaced" and "non-replaced" elements, yetfor the life of me I can''t find an explanation of what "replaced" issupposed to mean in this context. Can someone explain?TIA-----BEGIN PGP SIGNATURE-----Version: PGP 8.1 - not licensed for commercial use: www.pgp.comiQA/AwUBQdAS7+sywKfXgqKdEQJDPwCbBa2cnAhx8fqlTMbW8ZPLWw n3KnUAoLZmEJsX4AxbSG4JS8KpxV1l4hpt=xZUA-----END PGP SIGNATURE-------Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/> 解决方案<http://www.w3.org/TR/html4/struct/objects.html#h-13.2>"The IMG element has no content; it is usually replaced inline by theimage designated by the src attribute"<http://www.w3.org/TR/CSS21/conform.html#replaced-element>Replaced elementAn element for which the CSS formatter knows only the intrinsicdimensions. In HTML, IMG and OBJECT elements can be replaced elements.For example, the content of the IMG element is often replaced by theimage that the "src" attribute designates.I guess it also applies to form widgets.MatthiasThanks.OK, so a SPAN element would apparently be a non-replaced elementthen. Now if I were to say an *empty* SPAN element with a backgroundimage would then be a replaced element, what would you say?-----BEGIN PGP SIGNATURE-----Version: PGP 8.1 - not licensed for commercial use: www.pgp.comiQA/AwUBQdBDzusywKfXgqKdEQIQGQCdFwwLlfKMnat8stkx1wWBh4 rNgt0An3ThQJsULRX0HErOpTlpgPYTtJwn=MUx+-----END PGP SIGNATURE-------Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>It isn''t. A background image isn''t an IMG element, and a non-replacedelement''s dimensions aren''t dictated by the dimensions of an image used forits background. In other words, a span with a background image still doesn''thave intrinsic dimensions. 这篇关于&QUOT;(非)取代&QUOT ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的..
09-08 06:43