CSSだけで、角が丸いグラデーションのGoogle風ボタンを描く
test.css
.myButton {
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9));
background:linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9',GradientType=0);
background-color:#f9f9f9;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
cursor:pointer;
color:#666666;
font-family:Arial;
font-size:1em;
padding:3px 24px; /* ボタンの上下と左右の中の余白 */
text-decoration:none;
}
.myButton:hover {
background:color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9));
background:linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9',GradientType=0);
background-color:#e9e9e9;
}
.myButton:active {
position:relative;
top:1px;
}
.myButton {
margin-top: 1em;
}
Author And Source
この問題について(CSSだけで、角が丸いグラデーションのGoogle風ボタンを描く), 我々は、より多くの情報をここで見つけました https://qiita.com/hayate5931/items/618eb9949678a7267606著者帰属:元の著者の情報は、元の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 .