Esta tradução está incompleta. Por favor, ajude a traduzir este artigo do Inglês.

Resumo

Um elemento que exibe uma imagem, bem como o elemento img de HTML. O atributo src pode ser utilziado para especificar o URL da imagem.

Está disponível mais informação no Tutorial de XUL.

Nota: Prior to Gecko 8.0, images did not shrink down with the same ratio in both directions when specifying maximum sizes using maxheight or maxwidth. The new behavior aligns more with the HTML <img> element and shrinks both the width and height down proportionally.

Atributos
onerror, onload, src, validate
Propriedades
accessibleType, src
Classes de estilo
alert-icon, error-icon, message-icon, question-icon

Exemplos

Image:Firefoxlogo2.png
<image src='Firefoxlogo.png' width='135' height='130'/>

Atributos

onerror
Type: script code
This event is sent to an image element when an error occurs loading the image.
image.onload
Type: script code
This event handler will be called on the image element when the image has finished loading. This applies whether the image is applied via the src attribute or the list-style-image style property. If you change the image, the event will fire again when the new image loads. This event will not bubble up the element tree.
src
Type: URI
The URI of the content to appear in the element.
validate
Type: one of the values below
This attribute indicates whether to load the image from the cache or not. This would be useful if the images are stored remotely or you plan on swapping the image frequently. The following values are accepted, or leave out the attribute entirely for default handling:
always
The image is always checked to see whether it should be reloaded.
never
The image will be loaded from the cache if possible.

Propriedades

accessibleType
Type: integer
A value indicating the type of accessibility object for the element.
src
Type: URL
Gets and sets the value of the src attribute.

Inherited Properties
align, , allowEvents, , boxObject, builder, , , , className, , , , , collapsed, contextMenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxHeight, maxWidth, menu, minHeight, minWidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statusText, style, ,, tooltip, tooltipText, top, width

Métodos

Inherited Methods
addEventListener(), appendChild(), blur, click, cloneNode(), compareDocumentPosition, dispatchEvent(), doCommand, focus, getAttribute(), getAttributeNode(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData

Classes de estilo

alert-icon
Class that adds an alert icon. This typically looks like an exclamation mark. This and the other icon classes may be used by image elements or other elements which can have an image.
error-icon
Class that adds an error icon. This will typically be a red "X" icon.
message-icon
Class that adds a message box icon.
question-icon
Class that adds a question icon, which usually looks like a question mark.

Relacionado

See also the image and icon attributes.

Interfaces

Etiquetas do documento e contribuidores

 Contribuidores para esta página: mansil
 Última atualização por: mansil,