SóProvas


ID
456172
Banca
FCC
Órgão
TRT - 23ª REGIÃO (MT)
Ano
2011
Provas
Disciplina
Programação
Assuntos

Se a imagem de fundo ficará fixa ou se rolará ao usar a barra de rolagem, é definida na linguagem CSS pela propriedade background-

Alternativas
Comentários
  • exemplo...
    <style type="text/css">
    body
    {
    background-image:url('galileu.jpg');
    background-repeat:no-repeat;
    background-attachment:fixed;
    }
    </style>
  • Não entendi bem a questão... se ele quer que a imagem fique fixa ou não...
    mas para tudo se usa o attachment
  • All CSS Background Properties Property Description background Sets all the background properties in one declaration background-attachment Sets whether a background image is fixed or scrolls with the rest of the page background-color Sets the background color of an element background-image Sets the background image for an element background-position Sets the starting position of a background image background-repeat Sets how a background image will be repeated
     
    http://www.w3schools.com/css/css_background.asp
  • Não existe background-scroll nem background-fixed. 

    background-position server para determinar a posição do background. Pode ser usado valores como top, center, left, right, px, em, % etc.

    backgroun-image serve para utilizar uma imagem como plano de fundo e pode ser usado valores como url('img.png'), none, inherit.

    backgroun-attachment é serve definifir o comportamento do fundo. Se vai rolar ou não. Os valores podem ser fixed ou scroll.

  • c-

    background-color - cor fundo

    background-image -  figura fundo

    background-repeat - loop da figura

    background-attachment - se figura persiste

    background-position -