时间:2021-07-01 10:21:17 帮助过:7人阅读
js代码部分:
html代码部分:
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>全国城市二级联动</title> <style type="text/css"> body{ background:#EEEEEE;margin:0; padding:0; font-family:"微软雅黑", Arial, Helvetica, sans-serif; } a{ color:#006600; text-decoration:none;} a:hover{color:#990000;} .top{ margin:5px auto; color:#990000; text-align:center;} .info select{ border:1px #993300 solid; background:#FFFFFF;} .info{ margin:5px; text-align:center;} .info #show{ color:#3399FF; } .bottom{ text-align:right; font-size:12px; color:#CCCCCC; width:1000px;} </style> </head> <body> <div class="top"> <h1>全国城市二级联动</h1> </div> <div class="info"> <div> <select id="s_province" name="s_province"></select> <select id="s_city" name="s_city" ></select> <script class="resources library" src="area.js" type="text/javascript"></script> <script type="text/javascript">_init_area();</script> </div> </div> </body> </html>
以上就是本文的全部内容,希望对大家的学习有所帮助。