Skip to content

Instantly share code, notes, and snippets.

@RagtagGeoduck
Created May 1, 2021 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RagtagGeoduck/b7a80ee981418cd082dda2f54792c641 to your computer and use it in GitHub Desktop.
Save RagtagGeoduck/b7a80ee981418cd082dda2f54792c641 to your computer and use it in GitHub Desktop.
[按钮样式] #CSS
/*base*/
body {
background: #fff;
}
.btn {
display: inline-block;
padding: 4px 12px;
margin-bottom: 0;
font-size: 14px;
line-height: 20px;
text-align: center;
vertical-align: middle;
cursor: pointer;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
.btn-danger {
color: #fff;
background-color: #da4f49;
border: 1px solid #bd362f;
}
.btn-danger:hover {
color: #fff;
background-color: #bd362f;
}
.btn:focus {
outline: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment