Jump to content

Programare: Background 18/23


Recommended Posts

kenzake powah!
Posted

În afară de o culoare simplă pentu fond, se poate folosi şi o fotografie.

<table height="100" width="150" background="../img/image.jpg" > <tr><td>Acest text are drept fond o imagine </td></tr> </table>Image4.jpg

HTML - Background repetat (tile)

Atunci când tabelul este mai mare decît imaginea, aceasta se va multiplica şi repetă la nesfârşit.
<table height="100" width="250"

background="../img/image.jpg" >

<tr><td>Acest text are drept fond o imagine </td></tr> </table>Image5.jpg

HTML - Patterned Backgrounds

Repetarea unei imagini are o altă aplicaţie . Această funcţie a browser-ului de a repeta imaginea la nesfârsit se poate folosi ca un avantaj şi anume, putem crea o imagine foarte mică (cu Photoshop sau Corel Paint Shop PRO), de exemplu 4x4 pixeli. Această imagine poate fi un anume model care se va repeta continu.

pattern.jpg

Imaginea a fost marită pentru a fi văzută cu claritate.

<table height="100" width="150"

background="../../img/pattern.jpg" > <tr><td>This table has a background patterned image</td></tr>

</table>Image6.jpg

HTML - Culoare de fond transparentă

O altă metodă de a folosi imagini repetate este fondul transparent. Vom folosi o imagine ".gif"

Plasarea acestei imagini în background se face exact în aceeaşi manieră ca şi în exemplul anterior.

<table background="../../img/transparent.gif" >

<tr><td>This table has a red transparent background image</td></tr>

</table>Image7.jpg 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...