シンプルモダンなデザインのボタンサンプル
以下のようなシンプルモダンなデザインのボタンをつくりたいときの
サンプルコードです。
カーソルを合わせた時の色も変化します。
<div id="btn">ボタンを押す</div>
#btn{
margin: 30px auto;
width: 180px;
border-radius: 5px;
box-shadow: 0 4px 0 #e91b0c;
background: #f44336;
color:#fff;
cursor: pointer;
padding: 7px;
}
#btn:hover{
opacity: 0.8;
}
Author And Source
この問題について(シンプルモダンなデザインのボタンサンプル), 我々は、より多くの情報をここで見つけました https://qiita.com/umeee/items/8978270fbf44e254a830著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .