天天看点

html

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en"   http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">

<html>

<head>

<title></title>

<meta http-equiv = "content-type" content="text/html;charset=utf-8"/><!--设置编码集  同时注意设置的编码集方式要和保存时方式相同  save as -->

</head>

<body>

<h1 align="center">java 语言基础   <span style="color:red"><day03></span></h1>

<!--目录-->

<ol><!--有序-->

<li>个人所得税计算器<!--一级目录-->

<ul><!--无序-->

<li><a href="#question">问题</a></li><!--二级目录-->

<li><a href="#project">方案</a></li>

<li><a href="#code">解决</a></li>

</ul>

</li>

<li>命令解释器

<ul>

<li>问题</li>

<li>方案</li>

<li>解决</li>

</ol>

<h2>1 个人所得税</h2>

<a name="question"></a><!--这只锚点 和连接对应-->

<h3>1.1 问题</h3>

<p>个人所得税的缴纳情况</p>

<div align="center">

<a href="http://www.baidu.com" target="_blank"><img src="calculater.jpg" height=200/></a><!--设置在--新窗口打开-->

<p>图 -1</p>

</div>

<p>计算方式如表-1所示</p>

<table border=1 width =400 height=200 align="center">

<caption>表-1</caption>

<tr style="background-color:gray;">

<td width=200>所得</td>

<td width=100>税率</td>

<td width=100>扣除数</td>

</tr>

<tbody style="color:red;">

<tr >

</tbody>

<td colspan=3>...</td>

<td colspan=3>

<table>

<tr>

<td width=150>计算公式为:</td>

<td width=250 >阿萨德发生</td>

</table>

</td>

<a name="project"></a>

<h3>1.2 方案</h3>

<p>使用if语句完成</p>

<div align="center"><!--使用div进行分组  多行分组   而使用span是单行分组-->

<a href="http://www.baidu.com" target="_blank"><img src="if.jpg" height=600/></a>

<p>图 -2</p>

        <a name="code"></a>

<h3>1.3 实现</h3>

<p>新建一个记事本</p>

<p>pulbic class incometax{

<br />

}

</p>

<a href="#">to top</a><!--使用# 表示回到该页面的最顶端-->

</html>

<h1>增加管理员<h1>

<form>

用户名:<input type="text" name="n" value="aaa"/><br />

密码:<input type="password" name="p" /><br />

性别:<input id="s1" type="radio" name="sex" value="0"/><label for="s1">男生</label>

<input id="s2" type="radio" name="sex" value="1"/><label for = "s2">女生<br /></label>

角色:

<fieldset>

<legend>请选择</legend>

<input id="r1" type="checkbox" name="role" value="sa"/><label for="r1">超级管理员</label>

<input id="r2" type="checkbox" name="role" value="ad"/><label for="r2">普通管理员</label><br />

</fieldset>

状态:

<select>

<option>启用</option>

<option>停用</option>

<option>***</option>

</select><br />

个人描述:<br />

<textarea cols="10" rows="10">

</textarea>

<input type="submit" value="保存"/>

<input type="reset" value="重写"/>

<form>  

<iframe src="http://www.baidu.com" frameborder=0>

</iframe>