Advertisement
Tectoon

Aula 16/11/2018

Nov 16th, 2018
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.54 KB | None | 0 0
  1. Background e Foreground - MATÉRIA DE PROVA
  2.  
  3. Background e Foreground
  4.  
  5. Ex:
  6. <html>
  7.     <head>
  8.     <title>background=color</title>
  9.     <style> type="text/css">
  10.     div{
  11.         background-color:rgb(0,191,255);
  12.     }
  13.     color:rgb(255,255,255);
  14.     </head>
  15.     <body>
  16.     <div>
  17.         <h2>
  18.         Cor de fundo
  19.         </h2>
  20.     </div>
  21.     </body>
  22.     </html>
  23.    
  24. Cor Imagem
  25.  
  26. <html>
  27. <head>
  28. <title>Fundo com Imagem</title>
  29. <style> type="text/css">
  30.     #fundo{
  31.     width: 1200px;
  32.     height: 400px;
  33.     background-image: url(imagem,jpg);
  34.     background-orgin: content-box;
  35. }
  36.     h2{
  37.     text-align:center
  38.     }
  39. </style>
  40. </head>
  41. <body>
  42.     <div id="fundo">
  43.         <h2>
  44.             <font size="6" color="red" align="center"> fundo cor
  45.             imagem
  46.         </h2>
  47.         <h2> Testando</h2>
  48.         </div>
  49.         </body>
  50.         </html>
  51.  
  52. Arquivo .CSS
  53.  
  54. body{
  55.     color:green
  56. }
  57. li{
  58.     color:red
  59. }
  60.  
  61. 4 Estados de Links
  62.  
  63. ailink (ñ visitado)
  64. a:visited(visitado)
  65. a:haver(qdo usuario passa o mouse sobre o link.)
  66. a:active(link no momento que é clicado.
  67.  
  68. Ex:
  69.     <html>
  70.     <head>
  71.     >title> LINK</title>
  72.     >style type="text/css">
  73.     a:link{
  74.         color:red;
  75.     }
  76.     </style>
  77.     </head>
  78.     <body>
  79.     <div>
  80.     <h2>
  81.     Vá para a pág da Estacio<a hef="http://www.estacio.com.br">página</a>
  82.     <h3>
  83.     </div>
  84.     </body>
  85.     </html>
  86.    
  87.    
  88. hsl
  89. hsla
  90. RGB
  91. Opacidade
  92.  
  93. Sintaxe:
  94.  
  95. div{
  96.     color:rgb(100%, 100%, 0%);
  97. }
  98.  
  99. div{
  100.     color:hsl(0,100%, 30%);
  101. }
  102.  
  103. div{
  104.     color:hsla(0, 0%, 0%, 1);
  105. }
  106.  
  107. div{
  108.     opacity: 0,5;
  109. }
  110.  
  111. EXEMPLOS HSL
  112. CSS
  113.     Seletor{
  114.         color:hsl(120, 75%, 50%);
  115. }
  116.  
  117.     0 - vermelho
  118.     60 - amarelo
  119.     120 - verde
  120.     180 - ciano
  121.     240 - azul
  122.     300 - purpura
  123.     160 - vermelho
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement