zoukankan      html  css  js  c++  java
  • CSS搜索框



    源码:

    <!DOCTYPE>
    <html>
        <head>
            <meta charset="utf-8">
            <style type="text/css">
                * {
                    margin: 0;
                    padding: 0;
                }
                header {
                    font-family: helvetica, arial, sans-serif;
                    display: block;
                    overflow: hidden;
                     500px;
                    margin: 30px;
                    border-radius: 6px;
                    background-color: #C0A4FA;
                }
                form.stylin_form_search {
                    float: right;
                     200px;
                    margin: 5px;
                    padding: 5px;
                }
                form.stylin_form_search input {
                    float: right;
                     70px;
                    padding: 4px;
                    outline: none;
                    font-size: .8em;
                    border-color: #eee #ccc #eee #ccc;
                    border-radius: 10px;
                    transition: 1s width;
                }
                form.stylin_form_search input:focus {
                     200px;
                }
                form.stylin_form_search label {
                    display: none;
                }
            </style>
        </head>
        <body>
            <header>
                <form class="stylin_form_search" action="#" method="post">
                    <label for="search">search</label>
                    <input type="search" id="search" name="search" placeholder="search">
                </form>
            </header>
        </body>
    </html>
    
  • 相关阅读:
    Mysql事务隔离级
    51nod1076(tarjan)
    求无向图的割点和桥模板(tarjan)
    51nod1770(xjb)
    51nod1640(kruscal)
    51nod1639(组合数学)
    51nod1625(枚举&贪心)
    51nod1562(set&模拟)
    51nod1483(打表)
    51nod1475(贪心&枚举)
  • 原文地址:https://www.cnblogs.com/1328497946TS/p/12925353.html
Copyright © 2011-2022 走看看