(主にモバイル機器の)限られた画面領域を利用するためには様々な手法が考えられている。ハンバーガー・アイコンを使ったグローバル・ヘッダーはその最たるもので、ウェブサイトでも採用するところが増えてきた。なぜ普通のグローバル・ヘッダーではダメなのかと言えば、ページを開いた時にグローバル・ヘッダーの大きさが邪魔になって、コンテンツが見えなくなってしまいやすいことが挙げられるだろう。Ian Coyleというウェブサイトではそれをページ内リンクを利用してうまく解決していた。 コンテンツの始まる部分にID属性を振っておき、そこへリンクして移動させることによってグローバル・ヘッダーが画面外に置かれるようになる。適切な要素にID属性を振るだけと言って良いので、コストはほとんどなしに実装でき、またグローバル・ヘッダーのサイズにも制限はほとんどない。 また、HTML5では#topでページの先頭に移動するように定
Not your computer? Use a private browsing window to sign in. Learn more about using Guest mode
gistfile1.md HTML Imports: Discussion over Async/Progressive Loading There are concerns around HTML Imports that does sync or blocking loading as the default. I’d like to address these concerns. Especially I’d like to understand the actual use cases that “sync” loading hurts. This document aims to be a portal of that effort. What to Block Before discussing use cases, let’s clarify which part of pa
タイトル、少し変えました 😉 。 第1部「サイト高速化の「戦略」と「戦術」- GradeAのその先へ」では、YSlow や PageSpeed がアドバイスする Tips のうち、HTTP リクエストの削減を優先すべしという「戦略」の話をしました。 また css や js を束ねて結合し、HTTP リクエストを削減する時の「戦術」の話もしました。 今回は、「サイトの特性に適したリソースの配置を行う」ために、「束ねたリソースをドキュメント中にどう配置するのが適切か」を見い出したいと思います。またそのポイントとなるブラウザの基本的な挙動についても言及します。 ブラウザごとの挙動が確かめられる、実験サイト contentloaded.com を立ち上げたので、以下、同サイトから幾つかの例を引きながら話を進めたいと思います。 リソース配置を決める戦術 基本的な戦術 第1部 では、css や js
Translations: 日本語 (Japanese) by 鈴木丈 (Takeru Suzuki) 中文 (Chinese) by 陈三 (Sam Chen) Português by Tárcio Zemel Part 1: What’s Wrong With Media Queries? So let’s say you’re making a web page sometime between February 23rd, 1993 and May 25th, 2010. Images are easy! Simply: Look at your fixed-width layout Measure exactly how many pixels on each and every user’s screen you will invariably need to fill wi
All slide content and descriptions are owned by their creators.
Reasons HTML and CSS might make you say what the fuck. A curated list of commonly frustrating HTML and CSS quandaries, miscues, and dilemmas. Created by @mdo. Contents Declare a doctype Box model math Rem units and Mobile Safari Floats first Floats and clearing Floats and computed height Floated are block level Vertical margins often collapse Styling table rows Firefox and <input> buttons Firefox
Web browseres have HTMLAudio / WebAudio / HTMLVideo API for playing audio. However these API have diffrent way to use and browser have no compatibility. boombox.js provides unified API and solves diffrence enviroment between web browser. In addition to this library has function for mobile web browser support, eg: stop to play sound when a web browser is inactive, handle multiple audio source. WebA
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く