写真のようにツールチップを作成したいと思います。タイトルタグの値はコントローラから来ています。 jqueryなしでtitle属性を使用してカスタムツールチップを作成する方法
これは私のテーブルコードです:
<table border="1" cellpadding="10">
<tbody style="white-space: nowrap;">
<tr ng-repeat="row in rows">
<td style="width: 2%;">
<input type="checkbox"
ng-model="tableSelection[$index]"
style="margin-left: 10px;">
</td>
<td style="font-size: smaller; width: 27%; color: gray; white-space: nowrap;"
ng-repeat="col in input_columns"
droppable="dropable"
drop-fn="drop"
drop-index="$index"
drop-data="col"
title=""
ng-click="openDialog($event,$index)"
tempValue=""><enter data></td>
<td style="font-size: smaller; width: 27%; color: gray; white-space: nowrap;"
ng-repeat="col in output_columns"
droppable="dropable"
drop-fn="dropOutput"
drop-index="$index"
drop-data="col"
title=""
ng-click="openDialogOutputConst($event,$index)"><enter data></td>
</tr>
</tbody>
</table>
誰もがこのようなツールチップを提供するために、どのように私を助けることができます。
しかし、私は、私は、各セルは、更新された答えを参照ツールチップ –
に示すべきである別の値を、持っているように、セルホバーでツールチップを表示するよう、TDタグでこれを使用したいです。 – NiZa
私はあなたのコードを試しましたが、現在2つのツールチップを取得しています。 1つ前と1つ後また、タイトルに大きな文字列を追加すると、コンマから区切られません。私はツールチップの高さが増えていないことを意味します。水平方向に拡大しています –