【css】常用css
常用css--------下三角
常用css--------闪动效果
css
#shandongFlash { width:100px; height:100px; background:#f8b551; position:relative; animation:mymove 1.5s infinite; -webkit-animation:mymove 1.5s infinite; /* Safari and Chrome */ } @keyframes mymove { 0% { background:#29323f; width:100px;} 100% { background:#f8b551; width:100px;} } @-webkit-keyframes mymove /* Safari and Chrome */ { 0% { background:#29323f; width:100px;} 100% { background:#f8b551; width:100px;} }
html
<div id="shandongFlash"></div>
一种圆角效果
css
span{ position: absolute; display: inline-block; width:420px; height:28px; background-color:red; border-radius: 20px; clip:rect(14px,420px,28px,0px); }
html
<span></span>
效果
常用css--------改变input的placehoder颜色
input::-webkit-input-placeholder { /* WebKit browsers */
color: white;
}
input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: white;
}
input::-moz-placeholder { /* Mozilla Firefox 19+ */
color: white;
}
input:-ms-input-placeholder { /* Internet Explorer 10+ */
color: white;
}
作者:smile.轉角
QQ:493177502
作者:smile.轉角
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.
欢迎关注我,一起进步!扫描下方二维码即可加我QQ
![](https://www.cnblogs.com/images/cnblogs_com/websmile/1492407/t_smile%E8%BD%AC%E8%A7%92.jpg)