简体   繁体   中英

How to insert href link in this button tag

Hey i want to put this into href link in this button how to input that

\\"/led=ON\\"\\"

This is button code with animation

<button type="button" class="btn btn-primary btn-cons btn-animated from-top fa fa-arrow-up"><span>Open</span></button>

To give you a very bare-bones example of my comment above (formatting a link as a button), here is a decent place to start. Feel free to format it however you want of course.

HTML Hyperlink:

<a href="#" class="linkLikeButton">Example</a>

CSS Class:

.linkLikeButton {
  display: inline-block;
  border: 2px solid black;
  padding: 10px;
  background-color: steelblue;
  color: white;
  text-decoration: none;
}

  .linkLikeButton:hover {
    background-color: lightblue;
  }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM