русский  עברית
tadam logo
backgroundbackground-attachmentbackground-colorbackground-imagebackground-positionbackground-repeatborderborder-bottomborder-bottom-colorborder-bottom-styleborder-bottom-widthborder-colorborder-leftborder-left-colorborder-left-styleborder-left-widthborder-rightborder-right-colorborder-right-styleborder-right-widthborder-styleborder-topborder-top-colorborder-top-styleborder-top-widthborder-widthoutlineoutline-coloroutline-styleoutline-widthheightmax-heightmax-widthmin-heightmin-widthwidthfontfont-familyfont-sizefont-stylefont-variantfont-weightcontentcounter-incrementcounter-resetquoteslist-stylelist-style-imagelist-style-positionlist-style-typemarginmargin-bottommargin-leftmargin-rightmargin-toppaddingpadding-bottompadding-leftpadding-rightpadding-topbottomclearclipcursordisplayfloatleftoverflowpositionrighttopvisibilityz-indexpage-break-afterpage-break-beforepage-break-insideborder-collapseborder-spacingcaption-sideempty-cellstable-layoutcolordirectionletter-spacingline-heighttext-aligntext-decorationtext-indenttext-transformvertical-alignwhite-spaceword-spacing
Нашли ошибку в тексте?
Отметьте её курсором и нажмите
Ctrl + Enter
Проверка орфографии Xhtml.co.il
Orphus system
Рассылка
Присоединитесь к списку рассылки для получения последних новостей

Введите адрес электронной почты:

Примеры CSS

Пример

Устанавливает различный стиль шрифта для трех параграфов:
<html>
<head>
<meta charset="utf-8" />
<style>
     p.normal { font-style:normal; }
     p.italic { font-style:italic; }
     p.oblique { font-style:oblique; }
</style>
</head>
<body>
<p class="normal">Это параграф, нормальный.</p>
<p class="italic">Это параграф, курсив.</p>
<p class="oblique">Это параграф, наклонный.</p>
</body>
</html>
Результат выполнения кода выше:

Определение и использование

Свойство font-style устанавливает стиль шрифта для текста.

Значение по умолчанию: normal
Унаследованный: да
Версия: CSS1
Синтакс JavaScript: object.style.fontStyle="italic"

Поддержка браузеров

Свойство font-style поддерживается во всех ведущих браузерах.

Примечание: Ни одна из версий Internet Explorer (включая IE8) не поддерживает значение "inherit".

Property Values

ValueDescriptionPlay it
armenianThe marker is traditional Armenian numberingPlay it »
circleThe marker is a circlePlay it »
cjk-ideographicThe marker is plain ideographic numbersPlay it »
decimalThe marker is a number. This is default for <ol>Play it »
decimal-leading-zeroThe marker is a number with leading zeros (01, 02, 03, etc.)Play it »
discThe marker is a filled circle. This is default for <ul>Play it »
georgianThe marker is traditional Georgian numberingPlay it »
hebrewThe marker is traditional Hebrew numberingPlay it »
hiraganaThe marker is traditional Hiragana numberingPlay it »
hiragana-irohaThe marker is traditional Hiragana iroha numberingPlay it »
inheritThe value of the listStyleType property is inherited from parent element
katakanaThe marker is traditional Katakana numberingPlay it »
katakana-irohaThe marker is traditional Katakana iroha numberingPlay it »
lower-alphaThe marker is lower-alpha (a, b, c, d, e, etc.)Play it »
lower-greekThe marker is lower-greekPlay it »
lower-latinThe marker is lower-latin (a, b, c, d, e, etc.)Play it »
lower-romanThe marker is lower-roman (i, ii, iii, iv, v, etc.)Play it »
noneNo marker is shownPlay it »
squareThe marker is a squarePlay it »
upper-alphaThe marker is upper-alpha (A, B, C, D, E, etc.) Play it »
upper-latinThe marker is upper-latin (A, B, C, D, E, etc.)Play it »
upper-romanThe marker is upper-roman (I, II, III, IV, V, etc.)Play it »

Связанные страницы

CSS пособие: CSS Шрифт

CSS ссылка: font

jQuery пособие: css()

Была ли эта информация полезной?
   

Комментарии