ボタンをリンクのように見せるにはどうすればいいですか? 質問する

ボタンをリンクのように見せるにはどうすればいいですか? 質問する

CSS を使用してボタンをリンクのように見せる必要があります。変更は完了しましたが、クリックすると、ボタンのように押されたように表示されます。これを削除して、ボタンがクリックされてもリンクとして機能するようにする方法はありますか?

ベストアンサー1

button {
  background: none!important;
  border: none;
  padding: 0!important;
  /*optional*/
  font-family: arial, sans-serif;
  /*input has OS specific font-family*/
  color: #069;
  text-decoration: underline;
  cursor: pointer;
}
<button> your button that looks like a link</button>

おすすめ記事