سѧ login [ ¹ | ͡к ]
 з Top5 ѹ | | ҹ | 촹ѡ¹ | AF | TheStar | ͧ֡ Dek-D | App ҹºͶ New! |
  ѡҹ | ѡ | «駡Թ | Όҫ | ¼ | ͧʺ´ | ΌԤ | óǪ |
My.iD Control Ѥ繹ѡ¹ | Ըŧ ࡳҹ | äǺõ

Code ෤Ԥ My.iD2 ˹Һ [Writer]

͹ 113 : [lesson] CSS > Styling Font ... ѡ


     Ѿഷ 9 .. 54
Ѻ˹ѡͧ
㹵͹
-ͧ: ſ/䫹 ҿԡ
Tags: , code, ʹ, ʹ, id, id, My.iD, My.iD2, ,
: Caje  ͧ Caje
My.iD: https://my.dek-d.com/Caje
< Review/Vote > Rating : 95% [ 233 mem(s) ]
This month views : 37 Overall : 219,511
4,449 Comment(s), [ Όѹ 5114 ]

[ ͹͹˹ | Ѻ˹ѡͧ | ͹Ѵ ] [ ѹ֡ Favorite ] [ Դ˹ҵҧ ]
Code ෤Ԥ My.iD2 ˹Һ [Writer] ͹ 113 : [lesson] CSS > Styling Font ... ѡ , Ҫ͹ : 1847 , : 2 , Rating : 0% / 0 vote(s)

Ҵѡ : Ҵ | ŴҴ



CSS ö˹ Ẻѡ ˹ Ҵ ٻẺͧ͹

Font Family Сſ͹ (Ẻѡù)

;ǡ Serif, Sans-serif, Monospace ѹͧ (¡ҧ Angsana Cordia ˹ҹ)

<style type="text/css">
p.ex1{font-family:"Angsana New";}
</style>

˹ҹ Angsana New



Font Style ٻẺѡ

Ӥѭ Ǹ Ѻ §

<style type="text/css">
p.normal {font-style:normal;}
p.italic {font-style:italic;}
</style>

§ͧ¡ҧҡ͡  ;)



Font Size Ҵѡ

˹ͧẺ׹ px Ѻ em
px fix Ҵµ ǹ em 繢ҴºѺҧ
Դ px 繢ҴẺó ǹ em 繢ҴẺѷ (Ҩ繡÷ҡ?)

ǡ web design ҡ px 仡͹Сѹ 仹蹡͡繤ѡ˹ ͹ ͤ͹

<style>
h1 {font-size:40px;}
h2 {font-size:30px;}
p {font-size:14px;}
</style>



properties ͧ font 㹺÷Ѵ

͹ background й Դ繵ͧӴѺҤسѵ˹ͧҡ͹ѧ (Դ ѧͧͺ Ң׹ѹ) ѧҴٵҧѹ´ա...

<style type="text/css">
p.ex1 {
font:15px arial,sans-serif;
}
p.ex2 {
font:italic bold 12px/30px Georgia,serif;
}
</style>




Properties ʹ㨡ҹ ͡ҧԧ Ѻҧػ...

ҧԧ...
http://www.w3schools.com/css/css_font.asp


Property Description Values CSS
font Sets all the font properties in one declaration font-style
font-variant
font-weight
font-size/line-height
font-family
caption
icon
menu
message-box
small-caption
status-bar
inherit
1
font-family Specifies the font family for text family-name
generic-family
inherit
1
font-size Specifies the font size of text xx-small
x-small
small
medium
large
x-large
xx-large
smaller
larger
length
%
inherit
1
font-style Specifies the font style for text normal
italic
oblique
inherit
1
font-variant Specifies whether or not a text should be displayed in a small-caps font normal
small-caps
inherit
1
font-weight Specifies the weight of a font normal
bold
bolder
lighter
100
200
300
400
500
600
700
800
900
inherit
1



Dek-D Writer APP : ;ҹ Dek-D iPhone , Android Phone
!! iPad Android Tablet
Code ෤Ԥ My.iD2 ˹Һ [Writer] ͹ 113 : [lesson] CSS > Styling Font ... ѡ , Ҫ͹ : 1847 , : 2 , Rating : 0% / 0 vote(s)
Vote ṹ͹ Vote 1 / 1 .
[ ͹͹˹ | Ѻ˹ѡͧ | ͹Ѵ ] [ ѹ֡ Favorite ] [ Դ˹ҵҧ ]
˹ҷ 1
# 2 : Դ繷 3670
ͺسФ
PS.  !!
Name : ۑ.paradise.): < My.iD >  ͧ ۑ.paradise.): [ IP : 27.55.3.178 ]
觢ͤѺ
ѹ: 20 Ҥ 2555 / 02:03
# 1 : Դ繷 2066
 оӤ㨢Ѻ
exteen 555
PS.  $ ǧͤ ! xҹ᡺͡ ;лԺѵҧ觤Ѵ.
Name : ____$hinkilank!n . < My.iD >  ͧ ____$hinkilank!n . [ IP : 118.173.134.155 ]
觢ͤѺ
ѹ: 10 Ҥ 2554 / 22:47

˹ҷ 1
Post your comment : ʴԴ
ǹ 1: Message ͤ

ǹ 2 : Name ŧ
  ʤ繴 member Login name Password
  ʤʴ member : * email ٻ᷹
            Ţ

หนังสือใหม่ประจำเดือนพฤษภาคม 2561

͵ŧ & ͹䢡ҹ

  • óշŧҹ鹹繼ŧҹ¼ŧŧҹͧ ԢԷͧŧҹ
    繢ͧŧŧҹµç Ѵ͡ ӫ ͹Ѻ͹حҵ
    ҡŧŧҹ

  • óշŧҹ鹹зӡäѴ͡ ӫ Ҩҡŧҹͧؤ ŧ
    ŧҹеͧӡҧԧҧ еͧѺԴͺͧèѴ
    ԢԷ§

  • ͤٻҾҡ㹼ŧҹҹ Դҡк
    ѵѵԨҡؤŷ 硴մͷǹ Ǩͺ
    ;٨稨ԧ 㴾繡ŧŧҹԴԢԷ
    ô駼кʹԹ÷ѹ
    Email: contact(at)dek-d.com ( ءѹ 24 )
    Tel: 0-2860-1142 ( - 0900-1800 )

App ҹº iPad iPhone  Android