Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Sauvegarder le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <head> <style> #img1 { filtre: opacité(80%); } #img2 { filtre: opacité(50%); } #img3 { filtre: opacité(0.2); } </style> </head> <body> <h1>La fonction opacity()</h1> <p>opacity(80%):</p> <img id="img1" src="pineapple.jpg" alt="Pineapple" width="300" height="300"> <p>opacity(50%):</p> <img id="img2" src="pineapple.jpg" alt="Pineapple" width="300" height="300"> <p>opacity(0.2):</p> <img id="img3" src="pineapple.jpg" alt="Pineapple" width="300" height="300"> <p>Image originale :</p> <img src="pineapple.jpg" alt="Pineapple" width="300" height="300"> </body> </html>