Loading...

如何將 a href 禁用

Temperature: 0 °C

Mark ChangMark Chang
author_tools

如標題,若採用CSS的方式作法如下:

.disabled {
pointer-events: none;
cursor: default;
}

接著在連結裡加入上列CSS
<a href="URL" class="disabled">LINK</a>

以上紀錄~

#故事  #disabled  #CSS  #a href  
https://innstory.com/story-如何將_a_href_禁用-2789
CSS

Prev
 點選檔案下載卻直接執行開啟

Next
將Google字型fontsgoogleapiscom新增到CSP_header_中 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

使用JavaScript的split函式完成字串切割

使用JavaScript的s...

使用JavaScript的split 函式可以用來切割字串。 根據設定的切割點執行切開的動作。 以下...

mysql 查詢數據資料是否有重複

mysql 查詢數據資料是否...

pexelsphoto5 有沒有試過資料庫裡上萬筆資料卻不知道是不是有重複的數據? 這時你一定要試試...

PHP使用array_product()函數求得陣列中的乘積

PHP使用array_pro...

arrayproduct()是PHP中的一個內建函數,可以返回陣列中所有元素的乘積。 例如 $arr...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format