0
在我的網頁中,我使用表格而不是網格視圖,當我通過使用鍵填充具有自動填充功能的列時,特定行保持突出顯示,但是當我使用鼠標執行自動填充功能它不突出row..is那裏爲這個問題的解決方案表格沒有被突出顯示onclick
在我的網頁中,我使用表格而不是網格視圖,當我通過使用鍵填充具有自動填充功能的列時,特定行保持突出顯示,但是當我使用鼠標執行自動填充功能它不突出row..is那裏爲這個問題的解決方案表格沒有被突出顯示onclick
如果你的意思是選擇文本(高亮顯示),這可能有助於使內容不可選擇:
td,
th {
user-select: none;
-webkit-user-select: none;
/* Chrome/Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+ */
}
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
<tr>
<td>Ernst Handel</td>
<td>Roland Mendel</td>
<td>Austria</td>
</tr>
<tr>
<td>Island Trading</td>
<td>Helen Bennett</td>
<td>UK</td>
</tr>
<tr>
<td>Laughing Bacchus Winecellars</td>
<td>Yoshi Tannamuri</td>
<td>Canada</td>
</tr>
<tr>
<td>Magazzini Alimentari Riuniti</td>
<td>Giovanni Rovelli</td>
<td>Italy</td>
</tr>
</table>
你展示ren dred HTML? –
Hi Hary,*「尋求調試幫助的問題(」爲什麼這個代碼不工作?「)必須包含所需的行爲,特定的問題或錯誤以及在問題本身中重現問題所需的最短代碼。問題陳述對其他讀者無用。請參閱:如何創建[mcve]。「* https://stackoverflow.com/help/on-topic –