那麼如何用CSS偵測選單是否被點擊呢?這件事本身不難,我們可以用 :focus 選擇器。假設我們的選單HTML如下: <div class="dropdown-menu"> <span tabindex="0">Click ...
確定! 回上一頁