CSS ﻢﻠﻗ ﻩﺎﺗﻮﮐ ﯽﮔﮋﯾﻭ


فهرست مطالب

    نمایش فهرست مطالب


CSS ﻢﻠﻗ ﯽﮔﮋﯾﻭ

.ﺩﺮﮐ ﺺﺨﺸﻣ ﯽﮔﮋﯾﻭ ﮏﯾ ﺭﺩ ﺍﺭ ﺖﻧﻮﻓ ﺕﺎﯿﺻﻮﺼﺧ ﻡﺎﻤﺗ ﻥﺍﻮﺗ ﯽﻣ ﻦﯿﻨﭽﻤﻫ ،ﺪﮐ ﻥﺩﺮﮐ ﻩﺎﺗﻮﮐ ﯼﺍﺮﺑ

:ﯼﺍﺮﺑ ﺮﺼﺘﺨﻣ ﯽﮔﮋﯾﻭ ﮏﯾ font ﯽﮔﮋﯾﻭ

font-style
font-variant
font-weight
font-size/line-height
font-family

ﻪﺟﻮﺗ: ﻢﻠﻗ ﻩﺯﺍﺪﻧﺍ

ﻝﺎﺜﻣ

ﺭﺩ ﺖﻧﻮﻓ ﯽﮔﮋﯾﻭ ﻦﯾﺪﻨﭼ ﻢﯿﻈﻨﺗ ﯼﺍﺮﺑ font ﺯﺍ

   p.a
 {
     
 font: 20px Arial, sans-serif;
 }
 
 p.b
 {
     
 font: italic small-caps bold 12px/30px Georgia, serif;
 }

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html>
<head>
<style>
p.a {
  font: 20px Arial, sans-serif;
}

p.b {
  font: italic small-caps bold 12px/30px Georgia, serif;
}
</style>
</head>
<body>

<h1>The font Property</h1>

<p class="a">This is a paragraph. The font size is set to 20 pixels, and the font family is Arial.</p>

<p class="b">This is a paragraph. The font is set to italic, small-caps and bold, the font size is set to 12 pixels, the line height is set to 30 pixels, and the font family is Georgia.</p>

</body>
</html>




CSS ﻢﻠﻗ ﯼﺎﻫ ﯽﮔﮋﯾﻭ ﻡﺎﻤﺗ

font

ﺪﻨﮐ ﯽﻣ ﻢﯿﻈﻨﺗ ﻥﻼﻋﺍ ﮏﯾ ﺭﺩ ﺍﺭ ﺖﻧﻮﻓ ﯼﺎﻫ ﯽﮔﮋﯾﻭ ﻡﺎﻤﺗ

font-family

ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﻦﺘﻣ ﯼﺍﺮﺑ ﺍﺭ ﺖﻧﻮﻓ ﻩﺩﺍﻮﻧﺎﺧ

font-size

ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﻦﺘﻣ ﺖﻧﻮﻓ ﻩﺯﺍﺪﻧﺍ

font-style

ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﻦﺘﻣ ﺖﻧﻮﻓ ﮏﺒﺳ

font-variant

ﺮﯿﺧ ﺎﯾ ﺩﻮﺷ ﻩﺩﺍﺩ ﺶﯾﺎﻤﻧ ﮏﭼﻮﮐ ﻑﻭﺮﺣ ﺎﺑ ﺖﻧﻮﻓ ﺎﺑ ﺪﯾﺎﺑ ﻦﺘﻣ ﮏﯾ ﺎﯾﺁ ﻪﮐ ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ

font-weight

ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﺖﻧﻮﻓ ﮏﯾ ﻥﺯﻭ