| 
                        副标题[/!--empirenews.page--]
                        
                          
短视频,自媒体,达人种草一站服务
 
这篇文章主要介绍了html中车牌号省份简称输入键盘的示例代码,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧 
原理是先写出一个按键的div,然后再根据屏幕的大小去自动适应生成键盘,效果如下图: 
具体实现代码如下,就不细说了。 
<!DOCTYPE html> <html> <head>     <meta charset="UTF-8">     <meta content="width=device-width, initial-scale=1, user-scalable=no">     <script type="text/javascript"  src="http://www.admin5.com/article/js/jquery-2.1.4.js"></script>     <style>         /* *{             font-family:"黑体";         } */         .content{             width:265px;             height:353px;             position:absolute;             top:50%;             left:50%;             height:50%;             margin:-177px 0 0 -132px;         }         .label_province{             position:absolute;             top:6px;             left:10px;         }         .input_province{             position:absolute;             text-align:center;             width:26px;             left:1px;             top:6px;             border:none;             outline:0;               font-family:"黑体";                }         .input_font{             font-size:18px;             color:#333333;         }         .input_font_plate{             font-size:14px;             color:#333333;         }         .input_platenumber_base{             position:absolute;             text-align:center;             width:34px;             top:13px;             border:none;             outline:0;         }         .input_city{             left:44px;         } 
.label_platenumber{             font-size:14px;             color:#999;             width:265px;             text-align:center;             margin-top:29px;             border:0;             outline:0;         } 
.input_park{             font-size:14px;             color:#666;             width:265px;             text-align:center;             border:0;             outline:0;         } 
                        
                                                (编辑:洛阳站长网) 
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! 
                     |