jQuery商城收货地址城市选择

 时间:2024-10-12 19:15:30

1、新建html文档。

jQuery商城收货地址城市选择

2、书写hmtl代艨位雅剖码。<section class="g-flexview"&爿讥旌护gt; <section class="g-scrollview"> <div class="m-celltitle">默认调用</div> <div class="m-cell"> <div class="cell-item"> <div class="cell-left">所在地区:</div> <div class="cell-right cell-arrow"> <input type="text" class="cell-input" readonly id="J_Address" placeholder="请选择收货地址"> </div> </div> </div> <div class="m-celltitle">设置默认值</div> <div class="m-cell"> <div class="cell-item"> <div class="cell-left">所在地区:</div> <div class="cell-right cell-arrow"> <input type="text" class="cell-input" readonly id="J_Address2" value="新疆 乌鲁木齐市 天山区" placeholder="请选择收货地址"> </div> </div> </div> </section></section>

jQuery商城收货地址城市选择

3、书写css代码。.demo-loading { margin-bottom: 20px; }.demo幻腾寂埒-loading li a { -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; overflow: hidden; width: 100%; height: 100%; }.demo-loading li img { width: .6rem; height: .6rem; display: inline-block; }.demo-tip { color: #B1B1B1; font-size: .24rem; padding: .2rem .24rem .4rem; line-height: 18px; font-family: \5fae\8f6f\96c5\9ed1; position: relative; }.demo-tip:after { content: ''; position: absolute; bottom: .2rem; left: 0; width: 100%; border-bottom: 1px dashed #B2B2B2; -webkit-transform: scaleY(0.5); transform: scaleY(0.5); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; }.demo-tip i { margin-right: 3px; }.demo-tip a { color: #5AA700; }.demo-upload { overflow: hidden; }.demo-upload li { width: 1rem; height: 1rem; float: left; margin-right: 0.2rem; }.demo-upload li:last-child { margin-right: 0; }.demo-upload-big { width: 2rem; height: 2rem; margin-top: 0.4rem; }.demo-upload-rectangle { width: 4rem; height: 2rem; margin-top: 0.4rem; }.demo-components { background-color: #FFF; padding: 10px; margin-bottom: 10px; }.demo-upload { overflow: hidden; }.demo-upload li { float: left; }.demo-upload li img { width: 1rem; height: 1rem; margin-right: .2rem; }.demo-pitch { margin-top: .5rem; }.demo-small-pitch { margin-top: .35rem; }

jQuery商城收货地址城市选择

4、书写并添加js代码。<script src="js/ydui.flexible.js"></script><script src="js/jquery.min.js"></script><script src="js/ydui.citys.js"></script><script src="js/ydui.js"></script>

jQuery商城收货地址城市选择

5、代码整体结构。

jQuery商城收货地址城市选择

6、查看效果。

jQuery商城收货地址城市选择
  • 电脑怎样用自带的浏览器截长图?
  • win10电脑怎么长截图
  • 电脑windows10怎么截长图
  • windows10如何滚动截图
  • 电脑上如何一边滚动一边截图
  • 热门搜索
    有关写字的手抄报 感恩父母手抄报花边 走进田园手抄报 错别字手抄报 交通安全的手抄报 小学生食品安全手抄报 争做文明少年手抄报 千字文手抄报 手抄报数学 手抄报简单又漂亮