登录 | 注册 | FAQ
Anonymous

Preenchimento completo com background-color

+ 发表回复

3 篇帖子 分页: 1 / 1


Preenchimento completo com background-color

rafamiott » 周四 6月 20, 2013 5:05 pm

Ola

Estou tentando fazer uma pagina totalmente preta sem barra de rolagem, auto-ajustavel em qualquer resolução, porem nao consigo meu codigo esta assim:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
#all {
background-color: #000;
height: 100%;
width: 100%;
}

</style>
</head>

<body>

<div id="all">
</div>

</body>
</html>


Alguem me ajuda, desde ja Obriado
头像

rafamiott

  • 帖子: 1
  • 注册: 周四 6月 20, 2013 4:55 pm

Re: Preenchimento completo com background-color

XainPro » 周六 6月 22, 2013 9:09 am

você deve tentar assim

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
body {
background-color: #000;
}

</style>
</head>

<body>

<div id="all">
</div>

</body>
</html>
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: Preenchimento completo com background-color

ViniciusDesign » 周三 10月 02, 2013 2:16 pm

Use esse código:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//PT-BR" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
body {
background-color: #000;
}
</style>
</head>

<body>


</body>
</html>
头像

ViniciusDesign

  • 帖子: 10
  • 注册: 周日 8月 04, 2013 1:50 am


+ 发表回复

分页: 1 / 1