Taro-CSS.jtd



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

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

Web概論

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

6 2 1

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

CSSの基礎

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.

HTML5&CSS3 レッスンブック

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

HTML5 CSS

HTML HTML HTML

untitled

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

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

pdf

第3学年    学習指導案

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

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

ホームページ制作スターターズ

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

CSS

6 2 1

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

untitled

コンピュータサイエンス 1. ウェブの基本

年刊EDP 2003

インターネットマガジン1996年12月号―INTERNET magazine No.23

textbook.indd

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

HTML入門

Web

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

第6回 CSS入門(つづき)

PowerPoint Presentation

合宿事前講座 Web 開発の基本編その 2 情報研究会モブ 薗田海樹 The. H.30 情報研究会 1

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

2014メディプロ1HTML発展編2

3 3.1 SSedit ua012345% ssedit SuperSQL config.ssql log.txt( logs.txt) SSedit SSedit 3.2 ssql Putty SSedit ua012345% ssql HTML /public html/ssql.ssql 4


Web 設計入門

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

Transcription:

CSSCascading Style Sheet 1. CSS CSSCascading Style Sheet HTML XHTML, XML HTML CSS HTML/XHTML/XML CSS HTMLXHTML CSS XML CSS 2. CSS HTML/XHTML CSS HTML CSS XML XSL-FO XSLT+CSS CSS Web Web HTML 3. HTML HTML h2 /h2 CSS h2 font-size: 8pt; color: red h2 CSS HTML CSS h1 h7 div CSS -1-

h1 h2 HTML CSS TYPE CSS CLASS HTML h2 class="song" /h2 h2 class="picture" /h2 CSS h2.song font-size: 8pt; color: red h2.picture font-size: 8pt; color: green h2 4. CSS 1 : HTML/XML CSS 2 head style : HTML/XML stye 3 style : HTML/XML stye style style style style style 4.1 CSS CSS HTML head CSS HTML head meta http-equiv="content-style-type" content="text/css" /... 4.2 CSS HTML/XML CSS CSS HTML/XML CSS HTML CSS HTML *.css -2-

CSS 12 CSS link rel="stylesheet" href="./atomic.css" type="text/css" media="screen" / rel="stylesheet" href="./atomic.css" "./atomic.css" type="text/css" CSS media="screen" href URL URL 4.3 head style HTML HTML head style style head style style link style type="text/css" h1 background: #dddd /style 4.4 style style HTML h2 style="color: red"/h2 h2 5. CSS : ; : HTML/XML font-size line-height : h1 h1 text-indent: 2em h1 text-indent 2em "," : h1 color: maroon; text-indent: 2em : h1, h2, h3 font-family: sans-serif 5.1 "*" 0-3-

* margin:0; padding:0; 5.2 3 CSS HTML HTML body class HTML h1 class="note" h1 h1 class note /h1 h1 class="head" h1 h1 class head /h1 h1.note color: green h1.head color: red h1 h1.note h1 TYPE note CLASS "." TYPE note CLASS.note color: green "." CLASS 5.3 ID HTML h1 id="idno1" h1 h1 class note /h1 h1#idno1 color: green # 6. CSS 1 a - background 2 a - font-style b - font-variant c - font-weight d -font-size e - line-height f - font-family 3 a - text-indent -4-

b - text-align c - letter-spacing d - text-decoration 4 5 - margin 6 - padding 7 - border a - border-width b - border-style c - border-color 8 -float 1 a - background body body background: red URI body background: url" URL" - repeat repeat-x repeat-y no-repeat - scroll fixed - percentage length 1,2 top center bottom left center right body p h1 "color" strong strong color: red body color black, maroon, green, navy, silver, red, lime, blue, gray, purple, olive, teal, white, fuchsia, yellow, aqua RGB 1600-FF 2 a - font-style address strong font-style:italic - : italic - : normal - : oblique - :inherit b - font-variant -5-

address font-variant:small-caps - : normal - : small-caps - :inherit c - font-weight bold address font-weight:bold - : normal - : bold - :inherit - / : bolder/lighter - 100 :100 900 d -font-size address font-size:small, address font-size:150% - : xx-small, x-small, small, medium, large, x-large, xx-large - / : larger, smaller - : in - : cm - : mm - 1/72 : pt - 12 : pc - 1 : em - x 1 : ex - : px - : % inherit body font-size e - line-height normal, p line-height:0.8 - : normal -6-

-inherit - : in - : cm - : mm - 1/72 : pt - 12 : pc - 1 : em - x 1 : ex - : px - : % 120% - : 1.2 f - font-family generic-family - :serif - : sans-serif - : monospace - :fantasy - :cursive serif 3 a - text-indent - : in - : cm - : mm - 1/72 : pt - 12 : pc - 1 : em - x 1 : ex - : px - : % b - text-align - :left - :center -7-

- :right - :justify justify c - letter-spacing - : in - : cm - : mm - 1/72 : pt - 12 : pc - 1 : em - x 1 : ex - : px - : % d - text-decoration - :none - : underline - :overline - : line-through - :blink 4 a href=... a a CSS - : a:link ex. a:link color: maroon - : a:visited ex. a:visited color: navy - : a:hover ex. a:hover color: red 5 - margin -8-

p margin: 2em 3em 1em 1 ex. p margin: 1em 2 ex. p margin: 1em 2em 3 ex. p margin: 2em 3em 1em 4 ex. p margin: 2em 3em 1em 0 - : in - : cm - : mm - 1/72 : pt - 12 : pc - 1 : em - x 1 : ex - : px - : % 6 - padding -9-

p padding: 2em 3em 1em 1 ex. p padding: 1em 2 ex. p padding: 1em 2em 3 ex. p padding: 2em 3em 1em 4 ex. p padding: 2em 3em 1em 0 - : in - : cm - : mm - 1/72 : pt - 12 : pc - 1 : em - x 1 : ex - : px - : % 7 - border -10-

p border-width: 2em 3em 1em 1 ex. p border-width: 1em 2 ex. p border-width: 1em 2em 3 ex. p border-width: 2em 3em 1em 4 ex. p border-width: 2em 3em 1em 0 a - border-width - : thinmediumthick - : in - : cm - : mm - 1/72 : pt - 12 : pc - 1 : em - x 1 : ex - : px - : % -11-

b - border-style - :none - : hidden - : dotted - : dashed - :solid - : double - : groove - :ridge - : inset - :outset - :inherit c - border-color black, maroon, green, navy, silver, red, lime, blue, gray, purple, olive, teal, white, fuchsia, yellow, aqua RGB 1600-FF 8 -float div HTML img align text-align - : left ex. div floatt: left - : right ex. div float: right - : none ex. div float: none - : center ex. div float: center center width 7. 7.1 http://www.slis.keio.ac.jp/~ushi/hobby.html a b c HTML HTML -12-

html head meta http-equiv="content-type" content="text/html; charset=shift_jis" meta http-equiv="content-style-type" content="text/css" link rel="stylesheet" href="./common.css" type="text/css" link rel="stylesheet" href="./local.css" type="text/css" titlecss /title /head bodydiv class="text" h1css /h1 br / dl dt 2006/04/20 small/small strongushi 2 /strong/dt dd CSS HTML /dd p / dt2006/04/27 small/small strong/strong /dt dd CSS /dd /dl /div/body /html body head -13-

head CSS CSS Web common.css local.css link rel="stylesheet" href="./common.css" type="text/css" link rel="stylesheet" href="./local.css" type="text/css" CSS common.css local.css /* BODY */ body color: #000000; background-image: url"image/cowskin.gif"; text-align: left; /* */ div.text margin-left: 0.4em; padding-bottom: 0.4em; /* */ strong color: #cc00cc; font-weight: bold; /* */ h1 font-size: 1.5em; font-weight: bold; width: 100%; padding: 4px 4px 4px 4px; border-width: 2px 0px 0px 12px; border-style: solid; border-color: #3399ff; background-color: #ffffff; /* dl */ dt font-size: 1.0em; font-weight: bold; width: 100%; padding-left: 4px; border-width: 1px 0px 0px 6px; border-style: solid; border-color: #339933; background-color: #f0fff0; small font-size: 0.8em; cowskin.gif -14-

HTML span class="yellow"/span CSS span.yellow background-color: #ffff55; strong strong border-bottom: double red 3px; strong 7.2 HTML frame frame HTML CSS float CSS HTML -15-

1 2 3 4 5 CSS 6 div HTML frame HTML HTML -16-

html head /head body div class="block_a" img src="logo.gif" / /div div class="block_b" h1css /h1 /div div class="block_c" hr / /div div class="block_d" h2 class="contents"/h2 ol li / HTML li / HTML li / CSS li / /ol /div div class="block_e" h2 class="subtitle" CSS /h2 img src="sample.jpg" / /div div class="block_f" hr / c 2006 -ushi- /div /body /html CSS CSS 1 Ablock_a float left; block_b width 2 Bblock_b float left; 3 Cblock_cclear: both; A float 4 D,E A,B Eblock_emargin-left:20%; D E D -17-

E D 5 F C /* common.css */ div.block_a float: left; width: 10%; div.block_b width: 100%; height: 60px; padding-left: 15%; padding-top: 18px; background-color: pink; div.block_c clear: both; width: 100%; div.block_d float: left; width: 20%; line-height: 2em; padding-top: 18px; background-color: lightblue; div.block_e margin-left: 20%; div.block_f clear: width: 100%; 8. CSS -18-