当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <button>标签

HTML
HTML Head
HTML Meta
HTML URLs
HTML Scripts
HTML 属性
HTML 事件
HTML URL-encode
HTML Web服务器
HTML 摘要
HTML 实例
标签列表
标准属性
事件属性
ASCII码
特殊字符
HTTP状态消息

HTML <button>标签


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 399 ::
收藏到网摘: n/a

Definition and Usage
用法

Defines a push button. Inside a button element you can put content, like text or images. This is the difference between this element and buttons created with the input element.
定义一个按钮,在按钮元素里还能放些内容,比如文字或是图片。这个元素和使用input建立的按钮是有所区别的。


Differences Between HTML and XHTML
在HTML和XHTML中的区别

NONE


Example
实例

源代码 输出结果
<button>Click Me!</button>


Optional Attributes
可选属性

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
disabled disabled Disables the button
按钮不可用
STF
name button_name Specifies a unique name for the button
为按钮指定唯一的name
STF
type button
reset
submit 
Defines the type of button
定义按钮的类型
STF
value some_value Specifies an initial value for the button. The value can be changed by a script
为按钮指定最初的值。可以由script来进行改变
STF

Standard Attributes
标准属性

id, class, title, style, dir, lang, xml:lang, accesskey, tabindex

For a full description, go to Standard Attributes.
查看完整的描述

Event Attributes
事件属性

onfocus, onblur, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes.
查看完整的描述

评论 (0) All

登陆 | 还没注册?