本文为 兄弟连IT教育 机构官方 HTML5培训 教程,主要介绍:HTML5移动开发之路(46)——汇率计算器【2】
在上一篇中我们完成了汇率计算页面,下面来完成汇率设置页面的显示。
-
<div class="setRates">
-
<div class="header">
-
<div class="back"><a href="#" data-rel="back" id="backAndSave"><img src="images/tm.gif" width="93" height="54" border="0">a>div>
-
div>
-
<div class="bg">
-
-
<div class="list">
-
<div class="currency w100"><span class="strong">100span><span class="f25">美元span>div>
-
<div class="equal">=div>
-
<div class="setRates">
-
<input type="number" id="r2" maxlength="8" value="1">
-
div>
-
<div class="flagRight">人民币div>
-
div>
-
-
<div class="list">
-
<div class="currency"><span class="strong">100span><span class="f25">日元span>div>
-
<div class="equal">=div>
-
<div class="setRates">
-
<input type="number" id="r3" maxlength="8" value="1">
-
div>
-
<div class="flagRight">人民币div>
-
div>
-
-
<div class="list">
-
<div class="currency"><span class="strong">100span><span class="f25">里尔span>div>
-
<div class="equal">=div>
-
<div class="setRates">
-
<input type="number" id="r4" maxlength="8" value="1">
-
div>
-
<div class="flagRight">人民币div>
-
div>
-
<div class="list">
-
<div class="currency"><span class="strong">100span><span class="f25">新加坡元span>div>
-
<div class="equal">=div>
-
<div class="setRates">
-
<input type="number" id="r5" maxlength="8" value="1">
-
div>
-
<div class="flagRight">人民币div>
-
div>
-
<div class="list">
-
<div class="currency"><span class="strong">100span><span class="f25">欧元span>div>
-
<div class="equal">=div>
-
<div class="setRates">
-
<input type="number" id="r6" maxlength="8" value="1">
-
div>
-
<div class="flagRight">人民币div>
-
div>
-
<div class="list">
-
<div class="currency"><span class="strong">100span><span class="f25">克朗span>div>
-
<div class="equal">=div>
-
<div class="setRates">
-
<input type="number" id="r7" maxlength="8" value="1">
-
div>
-
<div class="flagRight">人民币div>
-
div>
-
<div class="list">
-
<div class="currency"><span class="strong">100span><span class="f25">英镑span>div>
-
<div class="equal">=div>
-
<div class="setRates">
-
<input type="number" id="r8" maxlength="8" value="1">
-
div>
-
<div class="flagRight">人民币div>
-
div>
-
div>
-
<div class="footer">div>
-
div>
下面给出全部界面的源码:
index.html
style.css
手机上的运行效果:
阅读(1390) | 评论(0) | 转发(0) |