去掉 input type="number" 右邊圖標


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
    <style type="text/css">
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button{
            -webkit-appearance: none !important;
            margin: 0; 
        }
    </style>
</head>
<body>
    <div id="header">
        <div id="logo"></div>
        <ul id="nav">
            <li class="item-1"><a href="weiwap/orderPlus/order.html">order</a></li>
            <li class="item-2"><a href="weiwap/orderPlusFwdzj/order_fwdzj.html">order_fwdzj</a></li>
            <li class="item-3"><a href="weiwap/waybill/index-query.html">index-query</a></li>
            <li class="item-4"><a href="weiwap/mysf/index-mysf.html">index-mysf</a></li>
        </ul>
        <input type="tel" />
        <input type="number" />
        <input type="text" />


    </div>
</body>
</html>

如代碼所示: 加入了style 這樣就沒有右邊的圖標了

 

 

還有一種說法是 把 type="number" 改為 type="tel" ,但是我沒有試成功.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM