Fóruns sobre PHP, JavaScript, HTML, MySQLi, jQuery, Banco de Dados, CSS
Moderador: web
![]() |
0 |
<style type="text/css">
#objeto{ /* FF */
position: fixed; /* posição fixa */
top: 100px; /* distância do topo */
left: 100px; /* distância da esquerda */
height: 100px; /* altura */
width: 100px; /* largura */
background-color: #cccccc; /* cor de fundo */
}
* html #objeto{ /* IE */
position: absolute; /* posição do objeto */
top: expression(body.scrollTop + 100 + "px"); /* distância do topo */
left: expression(body.scrollLeft + 100 + "px"); /* distância da esquerda */
height: 100px; /* altura */
width: 100px; /* largura */
background-color: #cccccc; /* cor de fundo */
}
</style>
<div id="objeto">CONTEÚDO FIXO</div>
![]() |
0 |
![]() |
0 |
![]() |
0 |
![]() |
0 |
![]() |
0 |
![]() |
0 |
![]() |
0 |