------- Windows Phone 7手机开发、.Net培训、期待与您交流! -------
一:文本标记
<br>
<p></p>段落
<hn></hn>:n从1到6,表示标题文本
二:链接和图像
<a></a>
href:url(相对地址/绝对地址)/mailto:/javascript:method()
target:_self默认值/_blank
title
img>
src
title
width/height
border
为页面定义锚点
为目标位置使用<a>定义为锚点:name
使用<a>导航到锚点:href="#name"
为图像添加映射
<map name="aa">
<area shape="rect" coords="" href="">
<area shape="" coords="" href="">
<area shape="" coords="" href="">
</map>
shape=rect coords="x,y,x1,y1"
shape=circle coords="x,y,r"
shape=poly
<img src="" usemap="#aa">
三:表格
基础结构:table/tr/td
常用属性:border/width/height/cellspacing单元格之间以及与表格的外边框之间的距离/cellpadding单元格内间距
tr和td也可以附带一些常用属性:width/height/align/valign
不规则的表格:
d的属性:colspan/rowspan
表格标题:<caption>作为表格的第一个子元素
行分组:thead/tbody/tfoot,tbody可以出现多次
四:表单--界面录入数据,选择数据,以表单为单位提交给服务器
<form action="a.jsp" method="post"></form>
包含子元素
<input>元素,type属性
文本框 type=text value
密码框 type=password
单选按钮 type=radio name value checked
复选按钮 type=checkbox name
文件 type="file"
隐藏域 type="hidden" value="data"记载一些不需要显示在页面上的关键数据
提交按钮 type="submit"
重置按钮 type="reset":恢复页面默认初始数据
普通按钮 type="button"
非<input>元素
选择列表:下拉框/列表框
select:选择列表 size multiple
option: value
多行文本框:<textarea> cols和rows属性
文本标签:<label for="绑定的元素的id">文本内容</label>
五:列表
无序列表:ul
有序列表: ol
列表项: li
列表的嵌套
六:框架页面
<frameset cols rows>
<frame src>
框架的嵌套
浮动框架:iframe
------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------ 详细请查看:http://net.itheima.com/