我注意到jQuery(或者它是Firefox)会转变我的一些 <span class="presentational"></span> into <span class="presentational" />
<span class="presentational"></span> into <span class="presentational" />
现在我的问题是,写这样的标记是否可以?任何浏览器都会窒息吗?
就我个人而言,<span class="presentational" />如果它是空的,我觉得它看起来更干净.
<span class="presentational" />
xml xhtml html5
html5 ×1
xhtml ×1
xml ×1