css3做的好看的小便签,纯CSS3 便签条折角效果

CSS

语言:

CSSSCSS

确定

html,

body {

padding: 0;

margin: 0;

font: 1em/1.4 Cambria, Georgia, sans-serif;

color: #333;

background: #fff;

}

header,

hgroup {

display: block;

}

a:link,

a:visited {

border-bottom: 1px solid #c55500;

color: #c55500;

text-decoration: none;

}

a:visited {

border-bottom: 1px solid #730800;

color: #730800;

}

a:hover,

a:focus,

a:active {

border: 0;

color: #fff;

background: #c55500;

}

a:visited:hover,

a:visited:focus,

a:visited:active {

color: #fff;

background: #730800;

}

.container {

width: 540px;

padding: 0 0 10px;

margin: 0 auto 30px;

}

.header {

border-bottom: 1px solid #ddd;

}

.footer {

padding: 10px 0 30px;

border-top: 1px solid #ddd;

margin-bottom: 0;

}

h1 {

margin: 1em 0 0;

font-size: 2.5em;

font-weight: normal;

line-height: 1.2;

text-align: center;

}

h2 {

margin: 0.5em 0 1.5em;

font-size: 1.25em;

font-weight: normal;

font-style: italic;

text-align: center;

}

p {

margin: 1em 0;

line-height: 1.4em;

}

pre {

margin: 1.4em 0;

font-size: 12px;

line-height: 1.4em;

white-space: pre-wrap;

word-wrap: break-word;

}

.follow {

clear: both;

margin-top: 2em;

font-size: 1.125em;

}

.follow span {

font-weight: bold;

/* == FOLDED CORNERS */

}

.note {

position: relative;

width: 480px;

padding: 1em 1.5em;

margin: 2em auto;

color: #fff;

background: #97c02f;

overflow: hidden;

}

.note:before {

content: "";

position: absolute;

top: 0;

right: 0;

border-width: 0 16px 16px 0;

/* This trick side-steps a webkit bug */

border-style: solid;

border-color: #fff #fff #658e15 #658e15;

/* A bit more verbose to work with .rounded too */

background: #658e15;

/* For when also applying a border-radius */

display: block;

width: 0;

/* Only for Firefox 3.0 damage limitation */

/* Optional: shadow */

-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), -1px 1px 1px rgba(0, 0, 0, 0.2);

-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), -1px 1px 1px rgba(0, 0, 0, 0.2);

box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), -1px 1px 1px rgba(0, 0, 0, 0.2);

}

.note.red {

background: #c93213;

}

.note.red:before {

border-color: #fff #fff #97010a #97010a;

background: #97010a;

}

.note.blue {

background: #53a3b4;

}

.note.blue:before {

border-color: #fff #fff transparent transparent;

background: transparent;

}

.note.taupe {

background: #999868;

}

.note.taupe:before {

border-color: #fff #fff #bdbb8b #bdbb8b;

background: #bdbb8b;

/* ROUNDED CORNERS VERSION

* All modern browsers can produce this effect with a single pseudo-element.

* However, they all have bugs (mainly to do with border-radius) that make this a bit tricky.

* As far as I can tell, this is the only cross-browser method for the moment.

* Can't use this method for the simple effect because Opera 11 will only show backgrounds

* through transparent borders if there is a border-radius applied.

*/

}

.note.rounded {

-webkit-border-radius: 5px 0 5px 5px;

-moz-border-radius: 5px 0 5px 5px;

border-radius: 5px 0 5px 5px;

}

.note.rounded:before {

border-width: 8px;

/* Triggers a 1px 'step' along the diagonal in Safari 5 (and Chrome 10) */

border-color: #fff #fff transparent transparent;

/* Avoids the 1px 'step' in webkit. Background colour shows through */

-webkit-border-bottom-left-radius: 5px;

-moz-border-radius: 0 0 0 5px;

border-radius: 0 0 0 5px;

}

.note p {

margin: 0;

}

.note p + p {

margin: 1.5em 0 0;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值