0
      <span class="a" dojoAttachPoint="apoint"></span>  
      <span class="b"   dojoAttachPoint="bpoint">hyperlinked msg</span>
      <span class="c" dojoAttachPoint="cpoint"></span>
      <div>Hello</div>

CSS:

      .a, .b, .c{
            float:left
      }

现在,当我选择超链接消息时,它也在选择下一个 div 的文本“Hello”。为了避免这个问题,我将代码更改为

      <div>Hello</div>
      <span class="a" dojoAttachPoint="apoint"></span>  
      <span class="b"   dojoAttachPoint="bpoint">hyperlinked msg</span>
      <span class="c" dojoAttachPoint="cpoint"></span>

这解决了这个问题。任何人都可以解释这个问题是如何解决的吗?

4

1 回答 1

0

你忘记了你的助焊剂:

<span class="a" dojoAttachPoint="apoint"></span>  
<span class="b"   dojoAttachPoint="bpoint">hyperlinked msg</span>
<span class="c" dojoAttachPoint="cpoint"></span>
<div style="clear:both"></div>
<div>Hello</div>

CSS

.a, .b, .c{
            float:left
      }

常见问题解答

于 2013-10-25T08:31:45.763 回答