当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <applet>标签
Defines an embedded applet.
定义嵌入的applet程序
The applet element was deprecated in HTML 4.01.
applet在HTML4.01中不被推荐
The applet element is not supported in XHTML 1.0 Strict DTD.
在XHTML1.0的严密型DTD中applet元素已经不被支持。
Note: To include applets, use the object element if possible (as the <applet> tag is not supported in XHTML 1.0 Strict DTD).
要加入applet程序,请使用object元素(因为<applet>标签在XHTML1.0严密型DTD中已经不被支持了)
DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
下表中的DTD列指明了被支持的DTD属性。S=Strict(精确的),T=Transitional(传统的),F=Frameset(框架)
属性 | 值 | 描述 | DTD |
---|---|---|---|
height | pixels | Defines the height of the applet 定义applet的高 | TF |
width | pixels | Defines the width of the object 定义object的宽 | TF |
属性 | 值 | 描述 | DTD |
---|---|---|---|
align | left right top bottom middle baseline texttop absmiddle absbottom | Defines the text alignment around the applet 定义在applet周围文字的对齐 | TF |
alt | text | An alternate text to be displayed if the browser support applets but cannot run this applet 为那些不支持applet的浏览器加上替换文字 | TF |
archive | URL | A URL to the applet when it is stored in a Java Archive or ZIP file 当它存放在java档案或是zip文件中时为applet指向的URL | TF |
code | URL | A URL that points to the class of the applet 指向applet类的URL | TF |
codebase | URL | Indicates the base URL of the applet if the code attribute is relative | TF |
hspace | pixels | Defines the horizontal spacing around the applet 定义水平间隙 | TF |
name | unique_name | Defines a unique name for the applet (to use in scripts) 在script中为applet定义唯一的name | TF |
object | name | Defines the name of the resource that contains a serialized representation of the applet | TF |
title | text | Additional information to be displayed in tool tip 在工具提示上加上额外的信息 | TF |
vspace | pixels | Defines the vertical spacing around the applet 定义垂直间隙 | TF |
id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard Attributes.
查看完整描述
accesskey, tabindex, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
查看完整描述