1.使用HTML的表单以及表格标签,完成以下的注册界面(验证码不做

html代码(css写于其中)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
body{
width: 500px;
margin: 10px auto;
}
form{
display: inline-block;
width: 500px;
font-size: 10px;
border: 1px solid #ccc;
padding: 20px;
}
p{
display: inline-block;
margin: 0 5px;
color: red;
}
input{
box-shadow: -1px -1px 1px #888888;
padding: 2px 7px;
}
.text{
display: inline-block;
width: 100px;
text-align: right;
margin-right: 20px;
}
.line{
margin: 10px auto;
}
.sex{
width: 45px;
}
.place{
width: 55px;
}
.button{
margin-left: 120px;
background-color: blue;
color: #fff;
width: 65px;
}
</style>
</head>
<body>
<form name="form1" method="post" onsubmit="check()">
<div class="line">
<div class="text" >用户名</div><input type="text" name="username"/><p>*</p><span>(带*的必须填写)</span>
</div>
<div class="line">
<div class="text">密码</div><input type="password" name="password"/><p>*</p>
</div>
<div class="line">
<div class="text" >重复密码</div><input type="text" name="repassword"/><p>*</p>
</div>
<div class="line">
<div class="text" >Email</div><input type="text" name="email"/><p>*</p><span>(将发送注册确认邮件)</span>
</div>
<div class="line">
<div class="text">姓名</div><input type="text" />
</div>
<div class="line">
<div class="text">性别</div><select class="sex" >
<option value="1">女</option>
<option value="2">男</option>
</select>
</div>
<div class="line">
<div class="text">地区</div><select class="place" >
</select>
<select class="place" >
</select><p>*</p>
</div>
<div class="line">
<div class="text">家乡</div><select class="place" >
</select>
<select class="place" >
</select>
</div>
<div class="line">
<div class="text">推荐人</div><input type="text" />
</div>
<div class="line">
<div class="text">填写验证码</div><input type="text" /><p>*</p>
</div>
<input class="button" type="submit" value="确定"/>
</form>
</body>
<script language="JavaScript">
function check(){
var string=""
if(form1.username.value=="")
string+="请输入用户名\n\r"
if(form1.password.value=="")
string+="请输入密码\n\r"
if(form1.repassword.value!=form1.password.value)
string+="两次密码不一致\n\r"
if(form1.email.value=="")
string+="请输入Email\n\r"
if(string!="")
alert(string)
}
</script>
</html>

实验截图

2、计算到期存款总额:

css

body{
width: 300px;
margin: 10px auto;
border: 1px solid #000;
}
h3{
text-align: center;
margin: 10px auto;
}
label{
margin: 5px 40px 5px 10px;
}
input{
box-shadow: -1px -1px 1px #888;
margin: 5px 0;
}
button{
width: 105px;
margin: 0 7px 0 2px;
box-shadow: 2px 2px 1px #000;
border:;
font-weight:;
}

html代码

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>简易计算器</title>
<link rel="stylesheet" href="calculator.css">
</head>
<body>
<h3>简易计算器</h3>
<form name="form">
<label>存款类型</label><input name="radio" type="radio" value="dingqi" />定期&nbsp;
<input name="radio" type="radio" value="zhengcun" />整存<br />
<label>存款期限</label><input type="text" name="time" />年<br />
<label>存款利率</label><input type="text" name="rate" /><br />
<label>期初存款</label><input type="text" name="start" /><br />
<hr >
<button type="button" onclick="calculate()">计算到期总额</button><input type="text" name="sum" />
<hr >
</form>
<script type="text/javascript">
function calculate(){
if(form.radio.value==""||form.time.value==""||form.rate.value==""||form.start.value=="")
alert("请填写完整")
else{
if(form.radio.value=="dingqi"){
form.sum.value=(1+eval(form.time.value)*eval(form.rate.value)*0.6)*eval(form.start.value)
}else{
form.sum.value=(1+eval(form.time.value)*eval(form.rate.value))*eval(form.start.value)
}
}
} </script>
</body>
</html>

实验截图

3、参考下面给出的代码,使用HTML与JavaScript完成界面功能

html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>shopping</title>
<link rel="stylesheet" type="text/css" href="shop.css"/>
</head>
<body>
<form name="form">
<div><i class="iconfont icon-gouwuche"></i></div>
<span>购物车</span>
<h4>购物简易计算机</h4>
<label>第一个数</label><input name="first" /><br>
<label>第二个数</label><input name="second" /><br>
<button type="button" onclick="compute('+')">+</button>
<button type="button" onclick="compute('-')">-</button>
<button type="button" onclick="compute('*')">*</button>
<button type="button" onclick="compute('÷')">÷</button><br>
<label>计算结果</label><input name="end" />
</form>
<script type="text/javascript">
function compute(op)
{
var num1,num2;
num1=eval(form.first.value);
num2=eval(form.second.value);
console.log(num1,num2)
if (op=="+")
form.end.value=num1+num2 ;
if (op=="-")
form.end.value=num1-num2 ;
if (op=="*")
form.end.value=num1*num2 ;
if (op=="÷" && num2!=0)
form.end.value=num1/num2 ;
}
</script>
</body>
</html>

css

下方@font-face 一块是iconfont(图像字体-一种无限放大也不失真的字体)

@font-face {font-family: "iconfont";
src: url('//at.alicdn.com/t/font_1428445_7bltond27zt.eot?t=1569342659395'); /* IE9 */
src: url('//at.alicdn.com/t/font_1428445_7bltond27zt.eot?t=1569342659395#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA1QAAsAAAAAGGAAAA0AAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFSAqgDJlNATYCJANICyYABCAFhG0HgVcbMhRRlJFWKNnPgpzMNVVHE2WmTVt0isBm7i6huPKXeVndq9bP89v8c999PF7ROqOejLW1ajsAdeGGCIiFIroodI2bi2LtKtJFJD8i4IG6195md4KVqFE8E814qBYMBqOFA3R4c5oyfsKtAf355nwvG9+1HCjYEci92an5th9RDulicxbyEQKfAAIDIybkV9mRpycJHN/btnrST3OvNhnLgprDG6EwBVlp7n3MUZf3+f4wHeanCG7AClFNT00mI0wHCHIS3IydlDMYW3owXRRpxhfauIrbAwSAFSoCaiVnaoFGYhyh29JqMQCdSSMbyhG6nqq4apKhhSBC5+YStwBgQfDn0Sf0CjQAQRSB3VHuOKkMYl/YL13Y6cVGxSZwnk8DgBcEgAFEACA99VVpewACPVRirD/pJACoCUgE/sEepSfII3jUni6eCE+8J8uT76n2LPPc9Xz/hfhLl/eC5hqq1ocdGFHzkZrTA0hIccQI7NIMQJKT4ZfNZWAK9z8vD0zwWr3KNCqAh5UIkgepBIIUMggIHKQABDGkGggEZBdwOF5GAEEEGQ8EGjILCCRkPhDkkFVAkEFWA4GHXAYEBHkXCBTk95gOGPCFeDrA4EtXERSYUOqraACMBKICAHUAqHlBW0SMhGV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r5do79naF8E0IQCyEYTWOSwyOICKcPodCGE1YPKdfmqNhhKDEA0N1MhyBy+whB6hzB5G5TUAx/TUQ6+I5Q5AETlj6oQnI6ByubYDcZHKYyoXSCYDXaaswi52DD7vkmS0OVwZ5OBGP0Jnu9daXQMyom35xiqjHZz3GJ+kZLL4fDLJjttmoh2bkzU1WVTai12ypMRkdUucNROyg62lx1ySijrRpYCexMDBx6yjKCUhPmtTKyqWHevwNb+P35TCwaVDGwN6zxYV49E7t61pMX9BQlpoOZImo6rXEofes1sujFQVwzgdnralNNkEy0SRX3bAS11WeqYGLkEKX8CLfWINFkS+auIsq8qrZ9Ada3VvZ+lYFAGJFIhCgkRjRiEIs4xCMJkiIZkiMFUiIVyOZWQ43D1mCw223j+gzozUwst9VYjKrQQFvkg4xrMJabxKUGq8NqsJFGg71MZLD26jlQlGpbD4ctb7A1sdpq5MtO0TDBWmNJtRdVWY0GK7PZAZEOU71DXGedYDqTLZogLzXeSlbZjJVUeYPBbLLShqGkVGmgKqxHpQAAAAAA') format('woff2'),
url('//at.alicdn.com/t/font_1428445_7bltond27zt.woff?t=1569342659395') format('woff'),
url('//at.alicdn.com/t/font_1428445_7bltond27zt.ttf?t=1569342659395') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('//at.alicdn.com/t/font_1428445_7bltond27zt.svg?t=1569342659395#iconfont') format('svg'); /* iOS 4.1- */
} .iconfont {
font-family: "iconfont" !important;
font-size: 30px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} .icon-gouwuche:before {
content: "\e707";
}
form{
width: 250px;
margin: 20px auto;
border: 1px solid #ccc;
background-color: #c9e495;
position: relative;
}
div{
width: 64px;
height: 64px;
border-radius: 50%;
border: 1px solid #000;
position: absolute;
top: 2px;
left: 2px;
background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(0, 0, 0, 0.1));
}
span{
font-size: 10px;
position: absolute;
top: 45px;
left: 20px;
color: red;
font-weight:;
}
h4{
text-align: center;
}
label{
margin: 3px 10px;
}
button{
width: 55px;
font-size: 15px;
margin-left: 3px;
box-shadow: 1px 0.5px 0px #ccc;
border-top:;
border-left:;
}
input{
border: 2px solid #000;
padding: 2px 5px;
}
i{
position: absolute;
color: red;
top: 10px;
left: 30px;
}

实验截图

4、使用HTML与JavaScript完成界面功能【点击 确认 弹出以下网页对话框】

css

.all{
width: 300px;
margin: 10px auto;
background-color: pink;
}
h3{
text-align: center;
}
label{
display: inline-block;
width: 130px;
text-align: right;
}
button{
display: block;
margin: 5px auto;
}
select{
margin-left: 5px;
width: 80px;
}

html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="sendinfo.css"/>
</head>
<body>
<div class="all">
<h3>送货地址确认</h3>
<form name="form1" method="post">
<label>省份:</label><select name="province" onchange="change()">
<option value="北京">北京市</option>
<option value="上海">上海市</option>
</select><br>
<label>城市:</label><select name="city" id="city"></select><br>
<label>区:</label><select name="area" id="area" ></select><br>
<label>街道:</label>
<input type="text" name="street" /><br>
<label>门牌号:</label>
<input type="text" name="door" />
<br>
</form>
<button type="button" onclick="confirm()">确认</button>
<script type="text/javascript">
function change(){
console.log(form1.province.value);
if(form1.province.value=="北京"){
document.getElementById("city").innerHTML="<option value='北京'>北京市</option>";
document.getElementById("area").innerHTML="<option value='东城区'>东城区</option><option value='西城区'>西城区</option><option value='宣武区'>宣武区</option><option value='崇文区'>崇文区</option><option value='海淀区'>海淀区</option><option value='朝阳区'>朝阳区</option><option value='丰台区'>丰台区</option>";
}
else{
document.getElementById("city").innerHTML="<option value='上海'>上海市</option>";
document.getElementById("area").innerHTML="<option value='静安区'>静安区</option><option value='普陀区'>普陀区</option><option value='黄浦区'>黄浦区</option><option value='杨浦区'>杨浦区</option><option value='徐汇区'>徐汇区</option>";
} };
function confirm(){
if(form1.province.value==""||form1.street.value==""||form1.door.value==""){
alert("请填写完整")
}else{
var info="你本次购买的商品信息如下:\n商品名称:跑跑游戏道具;\n商品数量:5件;\n商品单价:12.5美金;\n运费:10美金;总计72.5美金;\n送货地址:"+form1.province.value+form1.city.value+form1.area.value+form1.street.value+form1.door.value+"\n请确认以上信息是否有误!!!"
alert(info)
}
}
</script>
</div>
</body>
</html>

实验截图

5 、完成以下界面以及功能

html(css写于其中)

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>个人所得税</title>
<style type="text/css">
td{
padding-right: 10px;
}
input{
margin: 3px 5px;
font-size: 10px;
box-shadow: -1px -1px 1px #888;
}
button{
width: 80px;
margin: 2px 5px;
}
</style>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2">个人所得税计算器</th>
</tr>
<tr>
<td>请输入你的月收入:</td>
<td><input type="text" id="income"/>元</td>
</tr>
<tr>
<td>请输入所得税起征额:</td>
<td><input type="text" id="start"/>元</td>
</tr>
<tr>
<td>所得税:</td>
<td><input type="text" id="tax"/>元</td>
</tr>
<tr>
<th colspan="2">
<button type="button" onclick="calculate()">计算</button>
<button type="button" onclick="reset()">重填</button>
</th>
</tr>
</table>
<script type="text/javascript">
function calculate(){
var income=eval(document.getElementById("income").value);
var start=eval(document.getElementById("start").value);
if(income<start)
document.getElementById("tax").value=0
else{
document.getElementById("tax").value=(income-start)*0.1
}
}
function reset(){
document.getElementById("tax").value="";
document.getElementById("income").value="";
document.getElementById("start").value="";
}
</script>
</body>
</html>

实验截图

JavaEE-实验四 HTML与JSP基础编程的更多相关文章

  1. 2017-2018-2 20165215 实验四《Android开发基础》实验报告

    2017-2018-2 20165215 实验四<Android开发基础>实验报告 一.实验报告封面 课程:Java程序设计 班级:1652班 姓名:张家佳 学号:20165215 指导教 ...

  2. 20145212 实验四《Andoid开发基础》

    20145212 实验四<Andoid开发基础> 实验内容 安装Android Studio 运行安卓AVD模拟器 使用Android运行出模拟手机并显示自己的学号 实验过程 一.安装An ...

  3. 20145206实验四《Android开发基础》

    20145206 实验四<Android开发基础> 实验内容 ·安装Android Studio ·运行安卓AVD模拟器 ·使用安卓运行出虚拟手机并显示HelloWorld以及自己的学号 ...

  4. 2017-2018-2 20165237 实验四《Android开发基础》实验报告

    2017-2018-2 20165237 实验四<Android开发基础>实验报告 实验报告表头: No.1 实验要求: Android程序设计-1 实验要求: 参考<Java和An ...

  5. 2017-2018-2 20165236 实验四《Android开发基础》实验报告

    2017-2018-2 20165236 实验四<Android开发基础>实验报告 一.实验报告封面 课程:Java程序设计       班级:1652班       姓名:郭金涛     ...

  6. 2017-2018-2 20165306 实验四《Android开发基础》实验报告

    实验四<Android开发基础>实验报告 实验报告封面 实验内容 Android程序设计-1 实验要求: 参考<Java和Android开发学习指南(第二版)(EPUBIT,Java ...

  7. 2017-2018-2 20165207 实验四《Android开发基础》实验报告

    2017-2018-2 20165207 实验四<Android开发基础>实验报告 检查点1 安装测试Android Studio: 安装Android Studio 安装过程比较艰难,一 ...

  8. 20155229--Java实验四《Android开发基础》

    20155229 Java实验四<Android开发基础> 实验内容: 任务一: Android Stuidio的安装测试: 参考<Java和Android开发学习指南(第二版)(E ...

  9. 20145209 实验四 《android开发基础》 实验报告

    20145209 实验四 <android开发基础> 实验报告 实验内容 Android Stuidio的安装测试: 参考<Java和Android开发学习指南(第二版)(EPUBI ...

随机推荐

  1. mysql 5.7.24 root密码重置

    sudo mysql -u root -p 初始root密码没有,直接按回车 show databases: use mysql; update user set authentication_str ...

  2. PAT Basic 1008 数组元素循环右移问题 (20 分)

    一个数组A中存有N(>)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(≥)个位置,即将A中的数据由(A​0​​A​1​​⋯A​N−1​​)变换为(A​N−M​​⋯A​N−1​​A ...

  3. 文本处理工具(cut,sort,tr,grep等)

    命令目录,查看某一个命令可点击直接跳转: 文件查看 cat tac rev more less 按行截取 head tail 转化内容 tr 按列操作 cut paste 分析文本 wc sort u ...

  4. ie浏览器css兼容样式实例

    background-color:#f00;/*all*/background-color:#0ff\0;/* ie 8/9 */background-color:#0f0\9\0;/* ie9 */ ...

  5. CSS3背景定位 background-origin

    background-size 大小 语法 background-size :[ <length> | <percentage> | auto ]{1,2} | cover | ...

  6. 微信里关闭窗口 js

    需要在微信中关闭页面窗口,不过window.close()不管用,问过群里才知道微信有自带的方法能关闭窗口,记录一下(这个只针对微信有效哦): WeixinJSBridge.call('closeWi ...

  7. hiho #1066 : 无间道之并查集

    #1066 : 无间道之并查集 时间限制:20000ms 单点时限:1000ms 内存限制:256MB 描述 这天天气晴朗.阳光明媚.鸟语花香,空气中弥漫着春天的气息……额,说远了,总之,小Hi和小H ...

  8. JavaScript 算术运算符

    处理数值的典型情景是数值计算. ㈠JavaScript 算术运算符 算术运算符对数值(文字或变量)执行算术运算. ㈡算术运算符 典型的算术运算会操作两个数值. ⑴这两个数可以是字面量: var x = ...

  9. [NOIP2014普及组T1]珠心算测验 - NTT

    求数组有多少个数,恰好等于集合中另外两个(不同的)数之和? 注意到数集比较小,而且涉及到下标的加法,可以很自然地想到卷积 注意减去自己加自己的贡献 真是一道NTT练手好题 #include <i ...

  10. 使用word2vec对中文维基百科数据进行处理

    一.下载中文维基百科数据https://dumps.wikimedia.org/zhwiki/并使用gensim中的wikicorpus解析提取xml中的内容 二.利用opencc繁体转简体 三.利用 ...