リンクを無効にするスタイル

No links anchor element with CSS

CSS


.no-links{
	pointer-events: none;
	cursor: default;
	text-decoration:none;
}

HTML

	<article> 
	<h2>No links</h2>
<a class="no-links" href="http://www.tenman.info/">no link</a>
<a href="http://www.tenman.info/">tenman.info</a>
	</article> 

example

no link   tenman.info

browser support

http://caniuse.com/pointer-events

relate link

WordPress &#8250; フォーラム &raquo; 特定のカテゴリーで、表示はそのまま、リンクだけを外したい

リンクを無効にするスタイルへ1件のレスポンス

  1. I’m impressed, I hardship to articulate. Truly not often do I come across a weblog that’s both educative and entertaining, and allow me tell you, you might have success the nail proceeding the head. Your idea is outstanding; the problem is one fixation that not enough people are talking cleverly on the subject of. I am vastly entirely happy that I stumbled athwart this in my explore used for impressive connecting to this.