核心标签带"用于" attribute不与input元素关联

时间:2015-08-14 06:04:30

标签: dart dart-polymer

我在自定义元素中有一个for,其中<input>属性为另一个自定义元素中的 <custom-one> <core-label for=".cls{{myObj.hashCode}}" type="checkbox"> </core-label> </custom-one> <custom-two> <input class="cls{{myObj.hashCode}}" type="checkbox"> </custom-two> 指定类。但是,单击core-label元素不会将焦点放在&#34;为&#34;指定的目标中。

为什么呢?我该如何克服这个?

Sub Insert()
For Each Cell In Sheets("All").Range("D:D")
If Cell.Value = "780101" Then
    matchRow = Cell.Row
    Rows(matchRow & ":" & matchRow + 1).Select
    Selection.Copy
    Sheets("780101").Select
    Rows("6:6").Select
    Selection.Insert Shift:=xlDown
End If
Next
End Sub

请注意:

  1. 两个元素中指定的myObj是相同的。
  2. 我试过&#34; for =&#34;无 &#34;。&#34;前缀也是。
  3. 生成的html在两个地方都有适当的类。

0 个答案:

没有答案
相关问题