東京都府中市、渋谷区のWEB制作会社Maromaroのブログです

コミック風のボタン

  • RESULT
  • HTML
  • CSS
  • button01

  • コピー
    <p class="msr_btn07">
      <a href="#">button01</a>
    </p>
  • コピー
    .msr_btn07 a {
      background-color: #000000;
      box-sizing: border-box;
      color: #FFFFFF;
      font-size: 13px;
      display: block;
      padding: 20px;
      position: relative;
      text-align: center;
      text-decoration: none;
      transition: 0.2s ease-in-out;
      -o-transition: 0.2s ease-in-out;
      -moz-transition: 0.2s ease-in-out;
      -webkit-transition: 0.2s ease-in-out;
      width: 250px;
    }
    /* 白の三角形 */
    .msr_btn07 a:before {
      border: 4px solid transparent;
      border-left: 4px solid #FFFFFF;
      box-sizing: border-box;
      -moz-box-sizing: border-box;
      -webkit-box-sizing: border-box;
      content: "";
      display: inline-block;
      margin:0 4px 0 0;
      height: 8px;
      width: 4px;
      vertical-align:0px;
    }
    /* マウスオーバー */
    .msr_btn07 a:hover {
      background-color: #444444;
    }

検証済みブラウザ

  • Edge
  • FF
  • chrome

その他のボタン

ボタンの一覧をもっと見る

要素一覧