首页 > 其他 > 详细

去掉 input type="number" 右边图标

时间:2015-11-13 23:35:00      阅读:1977      评论:0      收藏:0      [点我收藏+]
<!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" ,但是我没有试成功.

去掉 input type="number" 右边图标

原文:http://www.cnblogs.com/BinBinGo/p/4963389.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!