html图⽚倾斜标签,CSS3信息卡⽚左上⾓的倾斜标签CSS
语⾔:
CSSSCSS
红学会确定
.new-item-badge {
position: absolute;
background: #92b7bd;日本人体艺术图
z-index: 999;
border-radius: 3px;
color: #fff;
低血压危害小明丫说剧font-size: 70%;
上海交通大学校历
padding: 2px 4px 0;
top: -17px;
left: -10px;
line-height: 1.4;
-ms-transform: rotate(-7deg);
-webkit-transform: rotate(-7deg);
transform: rotate(-7deg);
-webkit-transition: 0 0.1s ea-in;
-moz-transition: 0 0.1s ea-in;
-o-transition: 0 0.1s ea-in;
bosniatransition: transform 0.1s ea-in;
/
* Most of this code is necessary to style and position the badge. */
}
li {
/* This is also necessary to position it. */
position: relative;
margin: 30px;
list-style: none;
}
li:hover .new-item-badge {
transform: rotate(-14deg);
生理期可以喝牛奶吗
-ms-transform: rotate(-14deg);
-
webkit-transform: rotate(-14deg);
/* This combined with the transition properties above rotates the badge on hover. */ }
body {
background: #f7f7f7;
刘秀font-family: sans-rif;
text-transform: upperca;
}
li a {
color: #333;
background: #fff;
padding: 5px 10px;
border-radius: 3px;
box-shadow: 0 1px 2px #ddd;
text-decoration: none;
}