鍍金池/ 問答/HTML5  HTML/ AntDesign官網(wǎng)select an element on the page

AntDesign官網(wǎng)select an element on the page功能怎么實現(xiàn)的

AntDesign官網(wǎng)右下角有個圖標,里面有個select an element on the page的功能
鼠標懸停的元素外面會顯示個虛線框,這是怎么實現(xiàn)的?
如下圖
clipboard.png

回答
編輯回答
避風港

給document注冊mouseenter事件,鼠標經(jīng)過元素時,給元素加上邊框

2017年8月23日 09:56