Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Darkk

Alterar posicionamento de uma div

Recommended Posts

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>	<head>		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />		<title>Untitled Document</title>		<style>			body{ padding:0px; margin:0px; }			#meudiv{ width:100px; height:100px; position:absolute; background-color:#ff0000; }					</style>	</head>	<body>						<div id="meudiv">#</div>				<script>						document.getElementById("meudiv").style.top="100px";			document.getElementById("meudiv").style.left="100px";					</script>			</body></html>

roda tanto no ie como no ff naum entendi!!

 

 

the void

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.