css常用属性

.c{
-webkit-animation:leaf 0.6s ease 0.2s 1 normal both;

//旋转中心点
-webkit-transform-origin: 75% 85%;
//img、video自适应
object-fit: cover;
}
//普通动画
@-webkit-keyframes leaf{
	0% {opacity:1;transform: scale(1,1) translate(0,0) rotate(0deg);}
	100% {opacity:0;transform: scale(0,0) translate(100px,100px) rotate(60deg);}
}
/*行末省略号显示*/
.d{
	overflow: hidden;
	white-space: nowrap;
	text-overflow : ellipsis;
}
/*换行显示,强制换行*/
.d{
	word-wrap: break-word;
	word-break: normal;
}

 
  

你可能感兴趣的:(HTML/CSS/JS)