サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
iPhone 17
cssdeck.com
Based on Eric Meyer’s Reset CSS, the HTML5 Reset Stylesheet by HTML5Doctor.com aims to provide a basis for any websites making use of the new HTML 5 attributes, while improving in some areas and also removing support for deprecated HTML 4 elements. Click to jump straight to the code, or keep reading for some explanations and discussion… What’s New? The HTML5 Reset Stylesheet begins by removing sup
Collection of Awesome CSS and JS Creations to help out frontend developers and designers.
Fork More New Full Screen Share Link Full Screen Result Embed on your webpage (blogs, articles, etc.) Share on Twitter | Share on Facebook ↓ ♥ ∞ ↺ Login Help This is a recreation of Doodle Jump that originally comes for Android and iOS devices. This game is created using awesome HTML5 API and Canvas. It does not have all of the features that the original game has (for now) like Monsters, Power ups
Html <canvas id="canvas"></canvas> <audio preload="true" id="collide"> <source src="http://dl.dropbox.com/u/26141789/canvas/pingpong/Metal%20Cling%20-%20Hit.mp3" /> <source src="http://dl.dropbox.com/u/26141789/canvas/pingpong/Metal%20Cling%20-%20Hit.wav" /> </audio> Javascript // RequestAnimFrame: a browser API for getting smooth animations window.requestAnimFrame = (function(){ return window.req
One of the pioneers of the CSS Reset method, Eric Meyer, created a Reset stylesheet that is still in use on millions of websites today. Most people use it in its unedited form, despite Meyer’s recommendation against this: The reset styles given here are intentionally very generic. There isn’t any default color or background set for the body element, for example. I don’t particularly recommend that
<input type="text" placeholder="Start typing to begin searching." /> The only new bit is the placeholder attribute, but it results in this: I love placeholder text because it can help make large, complex forms easier to navigate. What better place to explain the requirements of an input field than right inside the field itself? And on short forms (like a search bar), placeholder text could be used
I recently ran into a bug in Firefox and Opera when I tried to set the line height of text inside a button (which affects input “submit” buttons as well as the HTML button tag). The bug? The line height can’t be changed! input#button { border: 2px solid #06f; color: #06f; background-color: #6cf; font: bold 12px Arial, Helvetica, sans-serif; line-height: 50px; } In a perfect world, this code would
次のページ
このページを最初にブックマークしてみませんか?
『HTML5, CSS3, JS Demos, Creations and Experiments | CSSDeck』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く