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

文件上傳過程中使用白名單、黑名單、或者MIME做認證

文件上傳過程中使用白名單、黑...

pexelsphotolock5 是不是被資安的問題搞得很煩? 我想,在建置系統的過程中,或多或少都...

javascript change css class

javascript cha...

javascript 使用classList是一個方便的替代方法,可以將元素的類列表作為空格分隔的字...

php檢查陣列中大於0的值

php檢查陣列中大於0的值

假設有一個陣列$a $a = array(,,,,,,); 取得大於的數值有幾個 $tempa = ...

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