锚、图像、定时器及其元素 |
|---|
| WAP技术站:www.wapease.com
|
6.6.2 a元素
<anchor>follow me <go href="destination.wml"/> </anchor>
可以使用a元素来实现,程序十分简单: <a href="destination.wml"> follow me</a> 其中定义超链接的href="destination.wml"也可以写在<a>与</a>标签包含的内容中。因此,a元素的语法格式有两种:
<a title="label" > href=“href” 文本(text) </a> 或: <a href=“href”> 文本(text) </a>
第1种格式中有一个title属性,它用于定义a元素的超链接标题,与anchor元素的title属性完全相同。为适应大多数的WAP手机浏览器,title属性所指定的标题也不应多于6个字符。 6.6.3 img元素
<img alt="text" src="url" localsrc="icon" align="alignment" height="n" width="n" vspace="n" hspace="n" />
属性中alt和src是必须要有的,其他可选。另外,需要注意的是img元素要放在p元素里,而不能放在do或option等元素里。 img元素各个属性的功能和用法介绍如下: (1) alt。该属性用来指定当手机不支持图像显示时用来替换显示的文本文字。 |
| 上一篇:6.5.3 option元素 下一篇:6.7 文本格式化及其元素 |
