From f2835f4c95b1fa274e38079d624532ca701100e7 Mon Sep 17 00:00:00 2001 From: Thomas Fritsch <tf@kumquats.fr> Date: Sun, 2 Feb 2020 23:04:02 +0100 Subject: [PATCH] =?UTF-8?q?objets=20litt=C3=A9raux=20:=20correction=20prix?= =?UTF-8?q?=20et=20liens=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- E-tableaux-objets.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/E-tableaux-objets.md b/E-tableaux-objets.md index a586d4a..2a4ddd2 100644 --- a/E-tableaux-objets.md +++ b/E-tableaux-objets.md @@ -27,8 +27,8 @@ Première pizza : { nom: 'Regina', base: 'tomate', - prix_petite: 5.5, - prix_grande: 7.5, + prix_petite: 6.5, + prix_grande: 9.95, image: 'https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300' } ``` @@ -40,7 +40,7 @@ Deuxième pizza : base: 'tomate', prix_petite: 6.5, prix_grande: 8.95, - image: 'https://images.unsplash.com/photo-1562707666-0ef112b353e0?&fit=crop&w=500&h=300&q=80' + image: 'https://images.unsplash.com/photo-1562707666-0ef112b353e0?&fit=crop&w=500&h=300' } ``` @@ -51,15 +51,15 @@ Troisième pizza : base: 'crème', prix_petite: 5.5, prix_grande: 8, - image: 'https://images.unsplash.com/photo-1458642849426-cfb724f15ef7?fit=crop&w=500&h=300&q=80' + image: 'https://images.unsplash.com/photo-1458642849426-cfb724f15ef7?fit=crop&w=500&h=300', } ``` Modifiez la boucle pour générer un code de ce type : ```html <article class="media"> - <a href="images/regina.jpg"> - <img src="images/regina.jpg" /> + <a href="https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300"> + <img src="https://images.unsplash.com/photo-1532246420286-127bcd803104?fit=crop&w=500&h=300" /> <section class="infos"> <h4>Regina</h4> <ul> -- GitLab