SlideServe
Menu
Préférences
© SlideServe · v2026

HTML und CSS

nicholas-schneider avatar
17 diapositives · 284 Views · Nov 03, 2014

HTML und CSS. Erstellung einer APP. HTML: head. <!DOCTYPE html > < html > < head > <title> Sharky </title> <link href ="styles.css" rel =" stylesheet ">

HTML und CSS - slide 1
01 / 17HTML und CSS
1 / 17

Télécharger la présentation

HTML und CSS
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. HTML und CSS Erstellung einer APP

  2. HTML: head <!DOCTYPE html> <html> <head> <title>Sharky</title> <link href="styles.css" rel="stylesheet"> <metaname="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> </head>

  3. HTML: body 1 <body> <header> <h1>Sharky App</h1> </header> <section> <h1>Willkommen!</h1> <p class="einleitung">Einleitung</p> <aside> <p>Loremipsum ….</p> </aside> <buttonid="tickets">Tickets kaufen</button> <buttonid="quiz">Quiz</button> </section>

  4. HTML: body 2 <script> window.scrollTo(0,1); </script> </body> </html>

  5. CSS 1 @charset "UTF-8"; body { font-family: Helvetica; margin: 0; } header { background-color: blue; padding: 10px; } header h1 { margin: 0; color: #ffffff; text-align: center; }

  6. CSS 2 section h1 { padding-left: 10px; } p.einleitung { font-weight: bold; padding-left: 10px; } button#tickets { background-color: #00cc00; }

  7. CSS 3 button { font-family: Helvetica; font-weight: bold; font-size: 20px; -webkit-appearance:none; border: 0; padding-left: 16px; padding-right: 16px; padding-bottom: 8px; padding-top: 8px; margin: 10px; background-color: #0044cc; color: #fff; border-radius: 9px; box-shadow: 0 1px 2px

  8. CSS 4 rgba(0,0,0,0.3); text-shadow: 0 -1px 2px rgba(0,0,0,0.3); background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,0.2) 100%); ); }

  9. CSS 5 aside { background-color: #ccc; padding: 10px; margin: 10px; box-shadow: 0px 2px 4px #666; text-shadow: 0px 2px 4px #666; border-radius: 10px; background-image: -webkit-linear-gradient(top, #eee, #fff); } @mediascreenand (min-width: 768px) { aside { -webkit-column-count: 4; -webkit-column-gap: 15px; -webkit-column-rule: dotted 1px #555; } }

  10. JavaScript Füge in den body einen Tag ein, durch den die Datei app.js importiert wird!

  11. JavaScript <body> <script src="app.js"></script> </body>

  12. JavaScript Importiere die Datei zepto.js

  13. JavaScript <scriptsrc="zepto.js"></script>

  14. JavaScript Erstelle eine Funktion, in der du h1 zu einem Zepto-Objekt machst und über die Funktion/Methode .append einen Button mit der Aufschrift Welt an h1 anhängst. Erstelle am Button das Event, dass durch das Klicken auf den Button das Bild sharky.jpg an h1 angehängt wird und der Button durch die Funktion/Methode .replaceWith vom String Sharky ersetzt wird.

  15. JavaScript <script> $(function(){ $('h1').append('<button> Welt</button>'); $('button').on('click',function(){ $('h1').after('<imgsrc="sharky.jpg">'); $(this).replaceWith(' Sharky'); }); }); </script>

  16. HTML-CSS Erstelle einen Button mit der idtickets, auf dem steht: Zeig mir ein Bild!

  17. HTML-CSS <buttonid="tickets">Zeig mir ein Bild!</button>