2015_2016:s1:webdoc:td5
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 2015_2016:s1:webdoc:td5 [2015/10/06 12:52] – created urli | 2015_2016:s1:webdoc:td5 [2015/11/30 12:30] (current) – [Manier les selecteurs comme personne] urli | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== TD5 Web ====== | + | ====== TD5 Approfondissement CSS ====== |
| - | | + | ===== Manier les selecteurs comme personne ===== |
| - | * Transition | + | |
| - | * Ombres, gradients, transformation | + | < |
| + | |||
| + | <box round rgb(185, | ||
| + | * Votre mission si vous l' | ||
| + | * supprimer tous les classes ou id (O_o). | ||
| + | * appliquer les styles uniquement via les selecteurs (http:// | ||
| + | * obtenir exactement le même résultat. Et oui, c'est possible M. Hunt. | ||
| + | </ | ||
| + | |||
| + | <note tip> | ||
| + | |||
| + | ===== Les formulaires 2.0 ===== | ||
| + | |||
| + | < | ||
| + | |||
| + | <box round rgb(185, | ||
| + | * Nous voulons créer un formulaire d' | ||
| + | * Nom (obligatoire) | ||
| + | * Prénom (obligatoire) | ||
| + | * Adresse de messagerie (obligatoire) | ||
| + | * Téléphone | ||
| + | * Mot de passe (obligatoire) | ||
| + | * Confirmation du mot de passe (obligatoire) | ||
| + | * Offre d' | ||
| + | * Recevoir la newsletter (case à cocher) | ||
| + | * Bouton " | ||
| + | * Bouton " | ||
| + | * Utiliser toutes les balises HTML5 nécessaires à l' | ||
| + | * Mettre en forme ce formulaire avec du CSS dans l' | ||
| + | * D' | ||
| + | * D' | ||
| + | * Et c'est pas fini, veiller à : | ||
| + | * Lorsqu' | ||
| + | * Les champs contenant du texte (excepté Mot de passe) doivent être pré-rempli. | ||
| + | * Quiz final : | ||
| + | * Quelles limites sont atteintes avec le HTML5/CSS3 pour les formulaires ? | ||
| + | * Quelles solutions sont disponibles ? | ||
| + | </ | ||
| + | |||
| + | <note tip>Un peu d'aide ? | ||
| + | * Pseudos-formats : :required, :invalid, :focus | ||
| + | * Type de champs HTML5 : email, tel, number, url, range, color, date, search (http:// | ||
| + | </ | ||
| + | |||
| + | ===== Transformations, | ||
| + | |||
| + | |||
| + | <box round rgb(185, | ||
| + | * Dans ce qui suit, amusez-vous en animant votre page personnelle en introduisant des animations. | ||
| + | </ | ||
| + | ==== Déplacement au survol de l' | ||
| + | |||
| + | |||
| + | <code css> | ||
| + | img:hover { | ||
| + | -webkit-transform: | ||
| + | /* -moz-transform: | ||
| + | -ms-transform: | ||
| + | -o-transform: | ||
| + | transform: translate(0, | ||
| + | */ | ||
| + | } | ||
| + | </ | ||
| + | (source : http:// | ||
| + | |||
| + | |||
| + | ==== Changement de couleur d'un lien doucement ==== | ||
| + | |||
| + | <code css> | ||
| + | a { | ||
| + | font-size: 3em; | ||
| + | font-weight: | ||
| + | color: #789; | ||
| + | text-decoration: | ||
| + | | ||
| + | -webkit-transition-duration: | ||
| + | |||
| + | /* Pour Firefox */ | ||
| + | /* -moz-transition-property: | ||
| + | -moz-transition-duration: | ||
| + | |||
| + | /* … et lorsque ce sera standardisé | ||
| + | transition-property: | ||
| + | transition-duration: | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | (source : http:// | ||
| + | ==== Amusez-vous ==== | ||
| + | |||
| + | |||
| + | |||
| + | http:// | ||
| + | |||
| + | |||
| + | |||
| + | Regardez et amusez vous à partir du [[ http:// | ||
| + | |||
| + | Par exemple : | ||
| + | <code css> | ||
| + | .move {-webkit-animation: | ||
| + | @-webkit-keyframes anim2 | ||
| + | { | ||
| + | from {left: 0px; | ||
| + | | ||
| + | | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | Et un peu plus : http:// | ||
2015_2016/s1/webdoc/td5.1444135965.txt.gz · Last modified: 2015/10/06 12:52 by urli