a里边不要加p,这个不合法。
w3规范有详细说明。
Generally, block-level elements may contain inline elements and other block-level elements. Generally, inline elements may contain only data and other inline elements. Inherent in this structural distinction is the idea that block elements create "larger" structures than inline elements.
各个浏览器实现不一致,就算外层inline element加float或改成block, 某些浏览器也会有问题。
【 在 saynothing (止语) 的大作中提到: 】
: 谢谢。
: 尝试了三种办法:line-height, margin, padding均可以,不过,都是通过增加block
: level的markup。<a>里面的文本套在<p>块里面。 这个问题,网上找了很多,都没找到
: ...................
--
FROM 123.116.153.35