クラス「selectTemplate」の変更の背景全体を変更するホバートリガーをtdで実行しようとしています。しかし、現在起こっていることは-{{description}}
変更は正しくあり{{name}}
ますが、同じままです。
{{name}}
両方にカーソルを合わせると、 &{{description}}
を変更したいと思います。
HTML
<table class="templateList templatepolicy-table">
<thead>
</thead>
<tbody>
{{#items}}
<div id="TemplateItem">
<tr>
<td>
<div id="{{sequence}}" class="selectTemplate">
<div class="TemplateName">
{{name}}
</div>
{{description}}
</div>
</td>
</tr>
</div>
{{/items}}
</tbody>
</table>
CSS
table.templatepolicy-table
{
width: 100%;
border-width: 0px;
border-spacing: 5px;
border-style: none;
border-color: black;
border-collapse: separate;
background-color: white;
}
table.templatepolicy-table .TemplateName
{
background-color: rgb(232, 232, 232);
color: #2779AC;
font-weight:bolder;
}
table.templatepolicy-table td
{
color: #656565;
width: 100%;
border-width: 0px;
padding: 5px;
border-style: none;
border-color: white;
background-color: rgb(232, 232, 232);
}
table.templatepolicy-table td:hover
{
color: #FFF;
background-color: #2779AC;
}