css| Syntax
1, font-family
function : To change the font of HTML flags or elements, you can set up a list of available fonts. Browsers select fonts from front to back.syntax : {font-family: F
CSS Chinese font garbled solutionCSS Chinese font garbled solution :Unify the CSS encoding and HTML page encoding. If the HTML page is Utf-8, CSS, JS also unified into Utf-8 encoding. If the HTML page is gb2312, CSS, JS also unifi
font file).Different browsers to the above several font file support situation, specific can see this article.Srules is a specific font style with the following properties:Font-variantFont-stretchFont-weightFont-styleUnicode-rangeFont-variantDesirable valuesNormal default value. Normal font.Small-caps font is small ca
font-family same value in @font-face */}
4. Text Shadow Text-shadow
Text-shadow can be used to set the shadow effect of text.
Grammar:
Text-shadow:x-offset y-offset blur color; X-offset: Represents the horizontal offset distance of the shadow, whose value is positive when the shadow is offset to the right, and vice versa;
Y-offset: Refers to the vertical offset
@font-face can load the server-side fonts to the browser side, so that designers can not be limited by the client font library.In general, there are four types of font files that can overwrite all browsers. These four formats are:. EOT: Applies to Internet Explorer 4.0+.. TTF or. OTF: For Firefox 3.5, Safari, Opera.. SVG: For Chrome, IPhone.. WOFF: The
Css short for vertical-align background font
1. vertical-align: sub (subscript) | super (superscript) | 5px (move up) |-5px (move down) | top | bottom | text-top | middle2. background Image position: background-position: Portrait (top | center | bottom) horizontal (left | center | right ); // Note: to use this css, you must first set the background to background-
The computer doesn't say what went wrong.Look at a lot of web pages, fonts have changed.It's not sung. It looks rather ugly.
Take Sohu, for example, on my computer.Maybe it's not very comfortable to see. And see NetEase does not have such a problem.
Because I guess it's sohu. The font for the Web page is not set.A simple look at their CSS code (no scrutiny). Found that there was really no
(a) Commonly used font properties: Font-weight: Attribute value 100-900 400 equals normal 700 equals bold, the larger the value, the thickerFont-size: Font size, unit can be PX or%Font-family: Font
In the site, are inevitable to use some Chinese fonts, such as the song, Microsoft, black, bold, etc., in the CSS written in Chinese methods are generally: font-family: "Microsoft Ya Black", "bold"; such a similar expression.CSS style files also distinguish between file encoding (visually gb2312, UTF-8 2 encoded files, gb2312 encoded style file lines and lines of
Font stylefont-family Setting the font nameFont-size setting the size of a fontFont-style Setting font style Normal default value. The browser displays a standard font style. The Italic browser displays an italic font style. Obliq
Transferred from: http://blog.csdn.net/shenzhennba/article/details/73560951. Font properties mainly include the following:font-family (font family): "Arial", "Times New Roman", "Song Body", "bold" and so on;Font-style (font style)
Attention:Because of the various browser compatibility issues we still use less this, the following is the specific use of methods and effects:DOCTYPE HTML Public "-//w3c//dtd XHTML 1.1//en" "Http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">HTMLxmlns= "http://www.w3.org/1999/xhtml"Xml:lang= "en">Head> Metahttp-equiv= "Content-type"content= "Text/html;charset=utf-8"> title>title> styletype= "Text/css"> *{padding:0px;margin:0px;
1. Introduction to font-related CSS properties (1) font-family: Font family.font-familyYou can save multiple font names as a "fallback" system. If the browser does not support the first font
When reading the php.net document, I found that the English font ( quot; FiraMono quot;) on the page was pretty nice, but it turned into my own webpage. What is the reason? (The same computer and the same browser)
When reading the php.net document, I found that the English font ("Fira Mono") on the page is pretty nice,
However, my own web pages have become frustrated. What is the reason? (The same comput
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 pictur
Common CSS font attributes (more text hidden, or displayed in the form of ellipsis), background styles, and two uncommon attributes of the background image: background-origin and background-clip,
(1) Common font attributes:
Font-weight: attribute value 100-900 400 equals normal 700 equals bold. The larger the val
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.