How do I style a span to look like a link without using javascript?

后端 未结 9 1418
慢半拍i
慢半拍i 2021-02-02 06:00

For my website I will need to use instead of , because I am using mostly ajax and thus instead of links I have onclick ajax event

9条回答
  •  南方客
    南方客 (楼主)
    2021-02-02 06:22

    You could use a button instead of span and use bootstrap css classes to style it like a link:

    It will react on mouseOver as normal links do. Run the code snippet to preview the result:

    
    
    

提交回复
热议问题