html图片不要角,CSS3 带小折角的图片

CSS

语言:

CSSSCSS

确定

body {

width: 100%;

*zoom: 1;

}

body:before,

body:after {

content: "";

display: table;

}

body:after {

clear: both;

}

body {

background: #f5f5f5;

}

img {

max-width: 100%;

vertical-align: middle;

}

.side {

width: 300px;

margin: 2em auto;

}

.profile-callout {

position: relative;

overflow: hidden;

}

.profile-callout img {

z-index: -1;

position: relative;

}

.profile-callout .text {

position: absolute;

top: 55%;

left: 1em;

-webkit-transition: top 200ms ease;

transition: top 200ms ease;

color: #fff;

text-shadow: 1px 1px #000;

}

.profile-callout .text h1 {

margin: 0 0 0.75em;

font-weight: 100;

font-family: monospace;

}

.profile-callout .text span {

display: block;

margin: 0 0 0.25em;

font-weight: 300;

}

.profile-callout .text span.green {

color: #b0c74c;

font-style: italic;

margin: 0;

}

.profile-callout .text span.below-fold {

padding-top: 1.5em;

}

.profile-callout:hover .text {

top: 20%;

}

.profile-callout:hover:before {

border: solid 0px white;

}

.profile-callout:hover .overlay {

background-color: rgba(0, 47, 75, 0.85);

}

.profile-callout:before {

content: "";

position: absolute;

top: 0;

left: 0;

background: #b0c74c;

border: solid 20px;

border-color: #f5f5f5 transparent transparent #f5f5f5;

border-radius: 0;

box-shadow: -2px 2px 1px rgba(0, 0, 0, 0.1);

-webkit-transition: border 200ms ease;

transition: border 200ms ease;

}

.overlay {

display: table;

width: 100%;

background-color: rgba(0, 47, 75, 0.5);

-webkit-transition: background-color 200ms ease;

transition: background-color 200ms ease;

background-position: center top;

height: 100%;

z-index: 2;

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值