HTML DOM propiedad hspace Imagen
Definición y Uso
hspace conjuntos de propiedades o devuelve la imagen hspace valores de atributos.
bordes en blanco izquierdo y derecho de la atributo hspace especifica la imagen.
gramática
imageObject.hspace=pixels
Soporte para el navegador
Todos los principales navegadores soportan la propiedad hspace
Ejemplos
Ejemplos
El siguiente ejemplo fijará los hspace y vSpace atributos de una imagen:
<! DOCTYPE html>
<Html>
<Head>
<Charset Meta = "UTF-8">
<Title> Este tutorial (w3big.com) </ title>
<Script>
setspace función () {
document.getElementById ( "Compman") hspace = "50" .;
document.getElementById ( "Compman") vspace = "50" .;
}
</ Script>
</ Head>
<Cuerpo>
<Id = "Compman" src = "compman.gif" alt = anchura "Computerman" Img = "107" height = "98">
<P> Un texto. Parte del texto. Parte del texto. Parte del texto. </ P>
<Input type = "button" onclick = "setspace ()" value = "establece el espaciado horizontal y vertical">
</ Body>
</ Html>
<Html>
<Head>
<Charset Meta = "UTF-8">
<Title> Este tutorial (w3big.com) </ title>
<Script>
setspace función () {
document.getElementById ( "Compman") hspace = "50" .;
document.getElementById ( "Compman") vspace = "50" .;
}
</ Script>
</ Head>
<Cuerpo>
<Id = "Compman" src = "compman.gif" alt = anchura "Computerman" Img = "107" height = "98">
<P> Un texto. Parte del texto. Parte del texto. Parte del texto. </ P>
<Input type = "button" onclick = "setspace ()" value = "establece el espaciado horizontal y vertical">
</ Body>
</ Html>
Trate »
objeto de imagen