CSS font style, attribute time: 2014-05-08 21:49 Source: I love learning Web | Author: I love learning Web | This article has affected the 68353-person CSS font style (font style) is one of the indispensable style attributes of a Web page, and with a
CSS font settings
Font familySyntax: font-family: [[Allowed value: Sans-serif (e.g., Arial or Helvetica)Cursive (e.g., zafc-Chancery)Fantasy (e.g., Western)Monospace (e.g., courier)Initial Value: determined by the browserApplicable to: all objectsBackward compatibility: Yes
Font
Author: jorux/bluecssr posted on: September 11,200 6 filed under: web design comments: 18 responses keywords: CSS, tutorial fontsize: + increase-decreaseeditThe previous section mainly introduced CSS's control over color and text attributes. This section describes CSS's control over attributes such as font and background.
Font: The
font families are automatically selected by the browser based on the current settings.If you want to use @font-face often need to do some optimization work, such as some font library is too large to keep only the text used in the page, for the Chinese font is more so, this time the Spider (fontspider) tool can help us
CSS for Webpage Design @ font-face application @ font-face in Webpage font custom CSSHe mainly embeds the web font he defined Into Your webpage.@ Font-faceThe emergence of modules, we use fonts in web development, not afraid to on
CSS font settings in the use of the process occurs frequently, the following for everyone to organize a number of related solutions, interested friends can refer to the following
font:12px/1.5 Arial,5b8b4f53,sans-serif What do you mean font: Font size/
This article mainly introduces the use of CSS font-size-adjust properties to improve the page layout, with a certain reference value, interested in small partners can refer to
The Font-size-adjust property in CSS allows developers to specify font-size based on the height of
CSS How to customize the font you know? There are CSS styles to set the font style, such as the introduction of the font size, as well as the font weight settings, this article teaches you how to use
What is Unicode-range?
A look at the name, a lot of small partners may think is something unusual, in fact, this thing is just a strange name, functional critical moment is still very useful.
Unicode-range is a CSS property that is commonly used in conjunction with @font-face rules.
We should not be in a hurry, then we go down 1.1 points, and now many websites will use Microsoft ya Black
CSS Font style propertiesCSS text styles
Serial number
Chinese description
Markup syntax
1
Font style
{font:font-style font-variant font-weight font-size
CSS Cascading Style sheets can be more granular to the page style settings, of course, some people like the font of custom text, but the default font-family built-in font style is only a few.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/1A/wKiom1XFoxqxDIAKAACivk-2ihk995.jpg "title=" 1.png " alt= "Wkiom1
Css
Font family Section
Syntax: font-family: [[Allowable value: Any font family section name can be used
Serif (e.g., times)Sans-serif (e.g., Arial or Helvetica)Cursive (e.g., zapf-chancery)Fantasy (e.g., Western)Monospace (e.g., Courier)Initial value: determined by the browserApply to: All objectsBackward-compatible:
1. The introduction of external font files in CSS:@font-face is listed as a new feature of CSS3, but it is not a fresh technology, it first appeared in CSS2 's specification definition, but was deleted in CSS2.1 and is now officially included in CSS3. Currently the main browser (IE 4+/firefox 3.5+/chrome 1+/safari 3.1+/opera + +) can support this property, so the
CSS font processing in the Web page design no matter how stressed also is not too much, after all, the use of Web pages to convey information, and the most classic and most direct way of information transmission is text, so, to understand a little bit of the basic knowledge of fonts for the design is still very important.
The biggest difference between Chinese and English is Chinese characters, English is
Css
The processing of the font in the Web page design no matter how stressed is not too much, after all, the use of Web pages to convey information, and the most direct way of information transmission is text, so, to understand a little bit of the basic knowledge of fonts for the design is still very important.
The biggest difference between Chinese and English is Chinese characters, English is the phonetic
In the Web page we often set the font of the text in the page, with the font-family this property can be used to set the font style. So we're going to teach you how to set this up from HTML fonts to CSS fonts.
Original HTML font settings
HTML text
the font sizes in CSS, there are many different units, roughly three categories,
Absolute size: mm, CM, in, PT, PCRelative size: Em, exRelative to device: pxmay have to say a few more words is EM and ex,em in CSS is the size of the font size, for example, for the font of P
Basic grammatical structure:
font-size+ Font Size value + unit
Word: font-size
Syntax: font-size:absolute-size | Relative-size | Length
Value: Xx-small | X-small | Small | Medium | Large | X-large | Xx-large
Xx-small: Min
X-small: Smaller
Small: Small
Medium: Normal (default), adjusting according to
use of the text, is to do the title, or paragraph text?Typically, San serif fonts are suitable for use as headings, such as Arial;serif fonts that are suitable for use as paragraph text, such as time New Roman. For web design, there are a few fonts I strongly recommend, Verdana, Tahoma, Georgia. In fact, like Verdana This font is designed by the world's top font designers for almost two years, Microsoft is
Document directory
CSS font family
Chaotic CSS font family font naming
Setting font attributes is one of the most common purposes of a style sheet. However, despite the importance of font
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.