zoukankan      html  css  js  c++  java
  • 【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

  • 相关阅读:
    KVM环境搭建RHCS
    修改virt-manager默认磁盘格式
    前端基础之html
    并发编程
    网络编程
    常用模块
    模块与包
    迭代器、生成器、面向过程编程
    闭包函数和装饰器
    函数
  • 原文地址:https://www.cnblogs.com/websmile/p/9041496.html
Copyright © 2011-2022 走看看