谢谢。
jsfiddle做了更新:
http://jsfiddle.net/saynothing/3b3gcq3o/2/我总觉得: <a>默认是inline类型的元素, <p>默认是block类型的元素。 应用float进行
两端对齐,设置margin,或者line-height的方式居中,是否会有问题? 这里<a>换成是
<p>或者<div>问题感觉不大。
【 在 shaolin (漫漫当爹路) 的大作中提到: 】
: 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.
: ...................
--
FROM 122.235.136.*