开发者

How do I make a link without <a href> show a mouse pointer instead of the highlight pointer?

开发者 https://www.devze.com 2023-02-03 02:32 出处:网络
<a id = \"missionclick\" 开发者_JAVA技巧class = \"moreinfo\"> More Information</a> Currently shows only the highlight pointer when hovered over \"more information\", i\'m trying to make
<a id = "missionclick" 开发者_JAVA技巧class = "moreinfo"> More Information</a>

Currently shows only the highlight pointer when hovered over "more information", i'm trying to make it show the hand pointer.


Here you go:

<a id="missionclick" class="moreinfo" style="cursor:pointer;">More Information</a>


The following CSS should apply a "pointer" cursor to all tags without an href attribute:

a:not([href]) {
     cursor: pointer;
}


The "cursor" css property is what you are looking for.

https://www.w3schools.com/cssref/pr_class_cursor.asp


you can also try:

  <a id="missionclick" class="moreinfo" style="cursor:pointer;"> More Information</a>


You can use this line as well.

    <a href="#"> Your link </a>


try this...

<div onClick="location.href='your link'">

0

精彩评论

暂无评论...
验证码 换一张
取 消