Home > front end >  Span tags, set up the general style only, not set herf, also have no binding events, can click on th
Span tags, set up the general style only, not set herf, also have no binding events, can click on th

Time:10-27


In this span tags, set up the general style only, not set herf, also have no binding events, can click on the words, can produce new links, excuse me each big cafe, how this is done,

CodePudding user response:

In this & lt; Span> The bag on a & lt; A> Tags, designated href, jump, or give the span a click event, with js or jq jump

CodePudding user response:

Using JavaScript on the page DOM to render the
That is to say, through a script for your further processing is the content in the Span
Guess: you can in your JS related resources, the grid search keywords - cell, there should be clues

CodePudding user response:

Describe the click event to achieve page can use JavaScript or Jquery jump

CodePudding user response:

In the span tags added js mouse click events
Click here to jump & lt;/span>


<script>
The function jump () {
Location. A href="https://bbs.csdn.net/topics//pages/ABC. JSP
"}

Change you want to jump the page in double quotes

CodePudding user response:

Can bind an event in js,
Like this:
Document. The getElementById (" BTN "). The onclick=function () {};

CodePudding user response:

The text - link - item - the title's move on to the link type should have the corresponding link to realize the logic code

CodePudding user response:

This,,, there are many ways,

CodePudding user response:

This description, you don't understand is to help achieve solution or you jump point of the span, but don't know why will jump to find out the bugs

CodePudding user response:

A bunch of people to watch pictured above answer - someone else is not can't tied to jump, but ask is why the span no href and the event also can click to jump to path,,,,,,,,
  • Related