实现方式千差万别,满足自己需求的才是最好的。
插件版提供了两种方式:
distpicker版
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link href="css/city.css" rel="external nofollow" rel="external nofollow" rel="stylesheet" type="text/css" /> <script src="/UploadFiles/2021-04-02/jquery-2.2.0.min.js">distpicker.data.js 、distpicker.js 下载地址
第二种插件版
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link href="css/city.css" rel="external nofollow" rel="external nofollow" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/UploadFiles/2021-04-02/jquery.min.js">相关js下载地址:链接: jqueryminjs
css下载地址:链接: css
无插件版:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="external nofollow" > </head> <body> <p> </p> <div class="row"> <div class="col-sm-12"> <div class="form-group"> <label class="control-label col-sm-2">所在区域</label> <div class="col-sm-3"> <select name="input_province" id="input_province" class="form-control"> </select> </div> <div class="col-sm-3"> <select name="input_city" id="input_city" class="form-control"> </select> </div> <div class="col-sm-3"> <select name="input_area" id="input_area" class="form-control"> </select> </div> </div> </div> </div> <p> </p> <div class="row text-center">数据来源: <a href="http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201504/t20150415_712722.html" target="_blank">http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201504/t20150415_712722.html</a> </div> <script type="text/javascript" src="/UploadFiles/2021-04-02/jquery.min.js">pdata.js下载地址
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
最新资源