Q
如何在HTML
-5
A
回答
1
a.disabled {
pointer-events: none;
color: #ccc;
}
<a href="www.google.com" class="disabled">Click me</a>
請檢查上面的代碼。它可以幫助你。
1
<a>
標籤沒有disabled
屬性。看here
0
你可以試試下面的代碼: -
<style>
.disabled{
/*Disabled link style*/
color:black;
}
</style>
<a class="disabled" href="javascript:void(0)">LINK</a>
0
有這樣(<a href="#" disabled>)
爲 「A」 的標籤也沒有殘疾人屬性。你可以嘗試禁用使用CSS,所以只需在你的「a」標記中加入類&,然後禁用CSS。
<a href="#" class="disable">
My Link
</a>
.disable {
pointer-events: none;
cursor: default;
}
相關問題
- 1. 如何在HTML
- 2. 如何在HTML
- 3. 如何在HTML
- 4. 如何在HTML
- 5. 如何在HTML
- 6. 如何在HTML
- 7. 如何在HTML
- 8. 如何在HTML
- 9. 如何在HTML
- 10. 如何在HTML
- 11. 如何在HTML
- 12. 如何在HTML
- 13. 如何在HTML
- 14. 我如何在HTML
- 15. 我如何在HTML
- 16. 如何使在HTML
- 17. 如何在HTML/CSS
- 18. 如何在HTML中集成HTML主題?
- 19. 如何在html中顯示html?
- 20. 如何在PHP中添加HTML以HTML
- 21. 如何在.html()中調用.html()?
- 22. 如何在html中包含html文件
- 23. 如何在html中插入html代碼
- 24. 如何使html在HTML中更小?
- 25. 如何隱藏在HTML
- 26. 如何在HTML ::腳本laravel
- 27. 如何在WordPress使用HTML
- 28. 如何在設置由HTML()
- 29. 如何在HTML的Django aggreate
- 30. 如何獲得在HTML + HTMLAgilitypack
My Link – Vishu
顯然的重複[http://stackoverflow.com/questions/7654900/how-do-you-make-an-anchor-link-non-clickable-or-disabled#],[ http://stackoverflow.com/questions/10276133/how-to-disable-html-links/10276157#10276157] – 2017-04-19 10:21:01