2015-03-02 149 views
-2
<a id="speakerPressingAnch" name="speakerPressingAnch"> 
        <span id="speakerPressingButton" class="icon-speakerPressing"></span> 

<!-- I have used div tag here --> 
    <div class="clear"></div> 

我在这里使用div标签如下:我可以使用div标签中span标签在HTML5

<span id="speakerPressingtext">Push <br> To <br> &nbsp;Talk </span> &nbsp; &nbsp; 
<!--    <img id="speakerPressingButton" src="" />--> 

       </a> 
+0

是的你可以..你遇到的问题我无法理解你的查询? – 2015-03-02 05:39:48

+2

是的,你可以。它虽然无效。 参考[这里] [1] [1]:http://stackoverflow.com/questions/2919909/nesting-div-within-span-problem – 2015-03-02 05:51:47

+0

编辑功能是有你*澄清*你的问题,而不是破坏它。请不要再这样做。 – BoltClock 2015-03-03 08:47:23

回答

0

这不是有效的,你永远需要做到这一点。

您不能将div元素放入span元素。因为divblock类型元素,而spaninline类型元素。

我认为不需要将div元素放入span元素。

相关问题