about かみのごうや たいち 大阪府出身 東京都在中 28歳 うお座 O型 ゾウと写真が好き 2xup.org を管理

Similar documents

経営論集2011_07_小松先生.indd

padding( パディング ) padding プロパティでボックスの内側の余白を指定します この部分の内側には背景 ( 背景色や背景画像 ) を表示できます border( ボーダー ) border プロパティでボックスの境界線を指定します ボーダーには色 太さ 線の種類を指定できます 画像で

第6回 CSS入門(つづき)

07_経営論集2010 小松先生.indd

サンプル CSS OutlineAnimation.html の説明 HTML の記述 (OutlineAnimation.html) id 属性 stage の div 要素を作り その中に div 要素でボックスを記述します id 属性 div1 の div 要素を記述し 中にテキストで Out

CSS

</div> </div> </body> </html> CSS の記述 (3DCubeAnime1.css) #stage ステージのスタイルを指定します 背景色を黒色で指定します 画像に軽く遠近感を出すために perspective: 1000px; と指定し perspective-orig

ホームページ制作 基礎編 (HTML5 CSS3 コーディング )

_勉強会_丸山さつき_v3

Microsoft PowerPoint - CSS(Cascading Style Sheets)の基本.pptx

Microsoft PowerPoint - CSSガイドライン_ ppt [互換モード]

をさせる ) ような場合に それぞれの要素に id 属性で id 名を指定している場合には CSS の id セレクタごとにアニメーションでプロパティを指定する必要があります class セレクタ.class 名 { プロパティ名 : 値 ; HTML 文書で class 属性 ( class="

背景の線形グラデーションをアニメーションのように見せる方法は 前章の #div4 ボックスと同じ方法です ( 注 )Safari (webkit 系ブラウザ ) と Chrome(Webkit にも対応 ) は テキストの輪郭や色を -webkit-text-stroke-width -webkit

ch31.dvi

Microsoft PowerPoint - css-3days.ppt [互換モード]

SVG資料第6回目(その3) SVGとHTMLの間でデータを交換する

transform: translatex(x 方向の移動距離 ) transform: translatey(y 方向の移動距離 ) transform: translate(x 方向の移動距離, Y 方向の移動距離 ) transform: translate 関数は 移動する位置ではなく 移動

Web 設計入門

Web データ管理 HTML+CSS (3) (2 章 ) 2011/10/19( 水 ) 湘南工科大学講義資料 Web データ管理 (2011) 阿倍 1/23

( 注 )Safari (webkit 系ブラウザ ) と Chrome(webkit にも対応 ) は テキストの輪郭や色を -webkit-text-stroke-width -webkit-text-stroke-color -webkit-text-fill-color のプロパティで描くこ

サンプル CSS web ページを開くと同時にピエロの玉乗りが動き出すアニメーションを作ってみましょう AnimeAuto の説明 HTML の記述 (AnimeAuto.html) ピエロの画像に pierrot という id を 玉の画像に ball という id を付けておきます <!DOCT

スタイルシートでデザインを整えよう

<!DOCTYPE html> <html> <head> <title>titleanime01</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="titleanime01.css"> </hea

6 2 1

ウェブデザイン技能検定学科試験 2 級 1. 各設問において 正しいものは 1 を 間違っているものは 2 を 該当設問の解答欄に記せ 第 1 問 文字実体参照の は 改行しない半角スペースを表示する 第 2 問 HTML 5.2 では コメントの中に連続したハイフンを入れることができる 第 3 問

~/WWW-local/compIID (WWW IID ) $ mkdir WWW-local $ cd WWW-local $ mkdir compiid 3. Emacs index.html n (a) $ cd ~/WWW/compIID

画像 images/ SpaceShuttle.png を指定します <!DOCTYPE html> <html> <head> <title>circleanime1</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/

インターネットマガジン2004年3月号―INTERNET magazine No.110

HTML5 CSS

MorphAndTextAnime の説明 HTML の記述 (MorphAndTextAnime.html) id 属性 stage の div 要素を作り その中に div 要素でボックスを記述します id 属性 div1 の div 要素を記述し 中につぎの記述をします id 属性 div2

MovingTextsAnime1 の説明 HTML の記述 (MovingTextsAnime1.html) id 属性 stage の div 要素 ( アニメーションが動くステージ ) を作り その中にボックスやテキストを記述します id 属性 div1 のdiv 要素から id 属性 div

JIS Web Web JIS JIS 5.1.a 5.1.b 5.2.a 5.2.b 5.2.c 5.2.d 5.2.e 5.2.f 5.2.g 5.3.a 5.3.b 5.3.c 5.3.d 5.3.e 5.3.f 5.3.g 5.3.h 5.3.i 5.4.a 5.4.b 5.4.c 5.4.

[ 学習動画 ] 一覧 学習の閲覧や質問の際にご利用ください 閲覧が終了した動画をチェックして 学習の進行状況を確認しましょう! 閲覧チェック Dreamweaver/HTML5/CSS3 講座 HTML/CSS リファレンス 動画タイトル 時間 ( 計 10 時 57 分 ) Chapter01

JavaScript 演習 2 1

HTML5&CSS3 レッスンブック

IBM Business Process Manager CSS による Coach レイアウト制御ガイド WebSphere 2014 IBM Corporation

Taro-CSS.jtd

HTML HTML HTML

CSSの基礎

【お試し版】Web制作者のためのCSS設計の教科書(非売品)

CSSNiteLP51-s7-kubo.key

Transcription:

CSS Taichi Kaminogoya 2007-03-24T13:30:00+09:00

about かみのごうや たいち 大阪府出身 東京都在中 28歳 うお座 O型 ゾウと写真が好き 2xup.org を管理

CSS

photo by timlovesbrian. http://www.flickr.com/photos/cmsspork/417022096/ http://creativecommons.org/licenses/by/3.0/

DOM

html DOM head body title div.section h1 div.section h2 div.section div.section h3 p h3 p strong a

<p> <span> </span> </p> p { color: yellow; }

<p> <span> </span> </p> p { color: yellow; } p span { color: green; }

3 1 2 3 CSS

重要度 高 制作者スタイルシート Web制作者 ユーザースタイルシート ユーザー デフォルトスタイルシート ウェブブラウザ 低

重要度! important 高 ユーザースタイルシート! imporatnt 制作者スタイルシート! important 制作者スタイルシート Web制作者 ユーザースタイルシート ユーザー デフォルトスタイルシート ウェブブラウザ 低

特定度 かみのごうや たいち 特定度が高い 大阪府出身 東京都在中 28歳 うお座 O型 ゾウと写真が好き 2xup.org を管理 photo by taro-san

<p class= hoge id= fuga > </p> p { color: orange; }

<p class= hoge id= fuga > </p> p { color: orange; } p#fuga { color: green; }

<p class= hoge id= fuga > </p> p { color: orange; } p#fuga { color: green; } p.hoge { color: red; } p[id=hoge] { color: blue; }

<p class= hoge id= fuga > </p> p { color: orange; } p#fuga { color: green; } p.hoge { color: red; } p[id=hoge] { color: blue; } }

特定度 得点 0 1 10 100 1 10 10 合計点 セレクタ 全称 * p.fuga #hoge :after :hover [id=hoge] 要素 class id 疑似要素 疑似クラス 属性 0 1 10 100 1 10 10

<p class= hoge id= fuga > </p> p { color: orange; } 101 p#fuga { color: green; } 11 p.hoge { color: red; } 11 p[id=hoge] { color: blue; }

3 1 2 3 CSS

photo by Elsie esq. http://flickr.com/photos/elsie/5136801/ http://creativecommons.org/licenses/by/3.0/

width, height margin padding border

height width

background

background background

background IE ボーダー辺 背景 background

height width

B A B A

<div id="container"> <div id="content"> </div> <div id="navigation"> </div> </div>

div#container { width: 300px; height: 300px; padding top: 100px; background color: #ccc; } div#content { height: 200px; background color: #ddd; } div#navigation { height: 50px; width: 100px; background color: black; }

position: absolute; top: 0; right: 0;

CSS, float, position: relative;, position: static; body, html, position: fixed; position: absolute; %, em

position: absolute; position static (body

CSS, float, position: relative;, position: static; body, html, position: fixed; position: absolute; %, em

div#container { position: relative; width: 300px; height: 300px; padding top: 100px; background color: #ccc; } div#content { height: 200px; background color: #ddd; } div#navigation { position: absolute; top: 0; right: 0; height: 50px; width: 100px; background color: black; }

& =

CSS

CSS Hack

Hack Validator HTML

CSS

HTML

HTML!

Hack Validator HTML

Hack Valid http://xrl.us/uzad

Hack IE DOCTYPE IE float 88 Mac IE pre overflow

DOCTYPE 190

padding HTML 74 DOCTYPE

div { padding: 13px; }

p { margin: 1em 13px; }

考え方を変える <div> <h1> <p> h1, p { margin: 1em 13px; }

padding HTML 74 DOCTYPE

div class= section <div class= section > <h1>heading 1</h1> <p>description</p> <div class= section > <h2>heading 2</h2> <p>description</p> </div> </div>

div.section XHTML 2.0 section, hn class class id

<div class= section > <h2>heading 2</h2> <p>description</p> </div>

考え方を変える <div class= section > <h2> <p> h2, p { margin: 1em 13px; }

ボックスモデル問題の解決 シンプルな構造 ほとんどのブロック要素に common.css などで定義しておく common.css を見せる 公開するものにも適用しています 必要に応じて上書き ボックスモデルに関する CSS ハックはこれで軽減できそう さまざまなレイアウトサンプルは書籍 79 ページから

ちょっと休憩

休憩おわり

CSS

CSS 96

id class

CSS

common.css :

layout.css common.css

theme.css

component.css clearfix inline

clearfix float <div class= clear ></div> <br clear= both />

float するオブジェクトの包含ブロックは縮む 解決 その1 後に要素がある div.footer { clear: both; } div.content { width: 100px; float: left; } div.menu { width: 100px; float: right; } div.section div.content div.menu div.footer

float するオブジェクトの包含ブロックは縮む 解決 その2 後に要素がない div.section { overflow: auto; } div.content { width: 100px; float: left; } div.menu { width: 100px; float: right; } IEは効果無し div.section div.content div.menu

float するオブジェクトの包含ブロックは縮む 解決 その3 後に要素がない div.section:after { content: '.'; visibility: hidden; clear: both; display: block; height: 0; } IEは非対応 div.section div.content div.menu div.section {... } div.content {... } div.section:after

float するオブジェクトの包含ブロックは縮む 解決 その3 後に要素がない 解決案 div.section:after { content: '.'; visibility: hidden; clear: both; display: block; height: 0; } div.section { zoom: 1; } div.content {... } IE以外 div.section div.content div.menu IE独自実装 div.section:after

clearfix float overflow: auto; float clear: left;, clear: right;, clear: both; <div class= clear ></div> <br clear= both />

clearfix float <div class= clear ></div> <br clear= both />

outline.css CSS

CSS

CSS 102 CSS background-color: black;

あんたー 部屋散らかってたから 片付けといたでー

そんなもんしらんわ マンガは片付けてないし 足の踏み場もなかったわ

2

2

あ それやったら 本棚の マンガ日本の歴史 の 裏に並べたわ

せやかて どこに直すか知らんねんもん あたし なんしか

{ 2 : : ; }

selector, selector { property: value; } selector { property: value; }

margin, padding, background

0 line-height 117 URI

photo by jkaneko-san

= Wiki CSS URL

http://xrl.us/vfsm elephantism

ご質問もどうゾウ

photo by Orin Optiglot. http://flickr.com/photos/orinrobertjohn/239595034/ http://creativecommons.org/licenses/by/3.0/