css| Control ★☆★ Use CSS you can control the font of the page arbitrarily, compared to the HTML is simply easy to know how much.
CSS uses the "Font-size" property to control the font size.
CSS can be used in the units: points, pixels and other units.
★ Use points (point):
td {FONT-SIZE:9PT}
Tell the browser to 9 point
its elementsYou can set the height and margin of a block elementIf you do not set the width yourself, its width is the width of its parent elementBlock elements can accommodate block elements and inline elements, but cannot contain block elements in inline elements3. Several centering methods(1) Set text in block element to center horizontallyUse the Text-align style to set the text or picture centered on the block.The style can only manipulate block elements or inline elements that are display
\4f53_gb2312
Chinese fine Black
Stheiti Light [Stxihei]
\534e\6587\7ec6\9ed1
Chinese blackbody
Stheiti
\534e\6587\9ed1\4f53
Chinese italic
Stkaiti
\534e\6587\6977\4f53
XXFarEastFont-Chinese song Body
Stsong
\534e\6587\5b8b\4f53
XXFarEastFont-Imitation
Stfangsong
\534e\6587\4eff\5b8b
Lai Hei Pro
Lihei Pro Medium
\4e3d\9ed1 Pro
Arial SimSun blackbody simhei Microsoft Black Microsoft Yahei Microsoft is bold Microsoft Jhenghei new song body Nsimsun new fine Ming body PMingLiU fine Ming body mingliu mark italics dfkai-sb imitation Fangsong Kai Body Kaiti Imitation _gb2312 fangsong_gb2312 italics _gb2312 kaiti_gb2312 Arial: simsuncss Chinese fonts (font-family) in English name some of Mac OS: XXFarEastFont-Black: Stheiti Light [Stxihei] Chinese blackbody: Stheiti Chinese italics
1. font-family: Set Font type
The user agent iterates through the defined font sequence until it matches a font.
body { font-family: helvetica, verdana, sans-serif; }
As in the font definition, if you do not have a Helvetica font on your machine, but you have Verdana, you will see your text in Verdana.
2. Color: Font ColorsColor can be specified using color name, HEX, RGB, RGBA, HSL, HSLA, Transparent.Because different browsers
Copyright NOTICE: This article is the original article of the blogger, without the permission of the blogger may not be reproduced.
Just ran into a CSS loading font cross-domain problem, record ah.
A site's dynamic request is a different domain name than a static file request. The domain name of the site is www.domain.com, while the static file's domain name is st.domain.com.
Problem:
Page loading CSS f
How to Use CSS to control the display style of Web Fonts. HTML only has the following labels for
There are two methods to strictly define the font size:
1. Absolute
For example, pt; in is fixed and will not be changed due to resolution ..
2. Relative
For example, px; em; % will change with the resolution and current font size...
Font-style: normal | italic | oblique
Italics
Font-weight: normal | bold |
Font Name Property (font-family) This property sets the font name, such as Arial, Tahoma, Courier, and so on. The example is as follows:. S1 {font-family:arial} Font Size property (font-size) This property can set the font size. There are several ways to set the font size, and the most common are pt and px (pixel). The example is as follows:. s2 {font-size:16pt} font style attribute (Font-style) This property has three values: normal, italic, oblique. Normal is the default value, italic, and obl
morph names. The rules are as followsTo illustrate:Style and distortion of fontsThe values for Font-style can be: italic, oblique, normal, inheritNormal: Non-italic and italic fontsOblique: An oblique version of normal vertical textItalic: Italic is a separate font style that has minor changes to the structure of each letter to reflect the changing appearanceCSS font-related points of fragmentation { font-variant:small-caps; /* Small Capital letters */ font-stretch
define the width of the element, and the inline element is not wide, we can add a display:inline-block; property just fine.PS: There are small partners let REM solve, I explain here ah, EM, REM is a relative unit, based on the size of the root element is calculated, the purpose is the browser font size changes, the page layout and font size can be adaptive. That is to say that the browser to render is or XX px, the Chrome browser itself is not rendering 12px below the font, so this method is no
This article brings to you the content is about the CSS font (font) in the different attributes of the introduction, there is a certain reference value, there is a need for friends to refer to, I hope you have some help.
Shorthand Order: style-variant-weight-size/line-height-family
eg
P{font:italic bold 12px/30px Georgia,serif;}
Note: The values for font-size and font-family are required.
Each property is described sequentially in order:
First, font
Font use is an integral part of web design. A Web page is a vector of text, and we want to use a particular font in a Web page, but the font is not a built-in font for the main operating system, so users may not see the real design when they browse the page.The most common way for artists to do this is to make a picture of the desired text, which has several obvious flaws:One, it is not possible to use the font in a wide range;Second, the content of the picture is not easy to modify with text;Th
Some of the Mac OS:Chinese fine Black: Stheiti light [Stxihei]Chinese blackbody: StheitiChinese Italic: StkaitiXXFarEastFont-Arial: StsongXXFarEastFont-Imitation: StfangsongShihda Black Pro:lihei Pro MediumShihda Song Pro:lisong Pro LightTarget: BiaukaiApple Shihda Black: ligothic MediumApple Shihda song: Apples Lisung LightSome of Windows:New detail: PMingLiUDetail: MingLiUTarget: DFKAI-SBBlackbody: SimheiSong Body: SimSunNew song body: NsimsunImitation: FangsongItalics: KaitiImitation _gb2312:
Have read some articles, suggested that the CSS font application in English to replace, but has not attracted my attention. Recent official website revision, today colleague Test found that Mac Safari always shows the Arial →→Modified font-family: "Microsoft Jas Black" is normal after "Microsoft Yahei".Blackbody: SimheiSong Body: SimSunNew song body: NsimsunImitation: FangsongItalics: KaitiMicrosoft Black: Microsoft YaheiYoung Circle: YouyuanEnglish n
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.