< input type =“image”src =“img / beer.png”/>是为了收集坐标.如果您想将其用作提交按钮,则必须添加onsubmit-event,例如
但您应该使用< button> -element,这样更灵活.它可以包含文本,图像或两者:
Here's some optinal text
you can even put it in a paragraph!
And you don't even need JavaScript!
编辑(2016-02-12)
截至今天*,上述示例不被视为100%有效,因为< p> -elements不再允许在< button> -element中.
Phrasing content defines the text and the mark-up it contains. Runs of phrasing content make up paragraphs.
Elements belonging to this category are ,,,,
,,,,,,,,,,,,,,,,,,,,,,,,
,,,
A few other elements belong to this category,but only if a specific condition is fulfilled:
,if it contains only phrasing content
,if it is a descendant of a element
,if it contains only phrasing content
,if it contains only phrasing content
,if the itemprop attribute is present
,if it contains only phrasing content
*今天是我读到的,而不是在引入变更时