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

ajax錯誤訊息提示

ajax錯誤訊息提示

pexelsphoto55 ajax目前已經是我寫系統使用非常普遍的方式~ 雖說常寫,但偶爾還是會有...

使用PHP mb_substr() 函式,擷取部分字串並記得使用UTF-8。

使用PHP mb_subst...

pexelsphotohello5 文字長度太長,一般來說我們可以使用DIV包住字串,再定義DIV的...

使用PHP取得指定月份最後一天的日期

使用PHP取得指定月份最後一...

使用PHP要如何抓某個月份的最後一天 例如抓本月份的話可以使用下列範例: date(&#;Ymt&#...

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