standards recommend the following font definition methods: Body {font-family: "Lucida Grande", Verdana, Lucida, Arial, Helvetica, XXFarEastFont-Franklin, Sans-serif;
Fonts are selected in the order listed. If the user's computer contains Lucida Grande fonts, the document is specified as Lucida Gr
When using tubro Linux, Many Commands need to be learned. Of course, some of these are very important. First, let's look at java awt Chinese processing in tubro Linux. I hope you will have some gains.
fontset.sansserif.bolditalic=\
-bh-lucida-bold-i-normal-snas-*-%d-*-*-p-*-iso8859-1,\
-misc-SimSun-medium-r-normal--*-%d-*-*-c-*-gbk-0
fontset.monospaced.plain=\
-bh-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1,\
-misc
Arial
Arial Unicode Ms **
Bell Mt
Bodoni Mt
Book antiqua
Calibri
Californian FB
Calisto Mt
Cambria
Century
Comic Sans MS
Consolas
Corbel
Courier New
Franklin Gothic book
Franklin Gothic Medium
Gill sans Mt
Goudy Old Style
Lucida bright
Lucida Console
Lucida Fax
Lucida sans
The same width font that comes with XP:
Batangche Courier "Courier New" dotumche fixedsys gulimche gungsuhche
"Lucida console" "lucida sans typewriter" mingliu "Ms Gothic" "Ms mincho"
Terminal _ gb2312 _ gb2312-正
The same width font of Chinese and Japanese characters (excluding the fonts of Chinese names) provided by XP: (the first three types are recommended)"Courier New" "
abandoning subjective arrogance and anxiety (which is very important ). Therefore, on this basis, I first began to collect extensive information. This information retrieval process has not lasted for a long time, because most of the existing planning methods are based on my previous thinking model. Until I saw a lucida who worked in Google London proposed the tarqie method, which is a way to "quantify" his progress. Of course, quantification here is
, such as line-height:150%; Color Sets the text color (note is not font-color), such as color:red; Font-family set fonts, such as font-family: "Lucida Grande", Verdana, Lucida, Arial, Helvetica, XXFarEastFont-Franklin, Sans-serif; (This is a common notation) All of the above can be written in one line of the Font property (except that the color property needs to be written separately): Font:italic bold
method to replace the above Code
The style definition is:
# Subnav {/* some styling */}# Subnav Li {/* some styling */}# Subnav A {/* some styling */}# Subnav. Sel {/* some styling */}# Subnav. Sel A {/* some styling */}
Using a sub-selector can make your code and CSS more concise and easier to read.10. Do not quote the background image path
To reduce the number of bytes, we recommend that you do not quote the path of the background image because the quotation marks are not required. For examp
follows:Margin: 1em 0 2em 0.5em;Border (border)The border attributes are as follows:Border-width: 1px;Border-style: solid;Border-color: #000;It can be abbreviated as border: 1px solid #000;Syntax: border: width style color;Background (Backgrounds)The attributes of the background are as follows:Background-color: # f00;Background-image: url(background.gif );Background-repeat: no-repeat;Background-attachment: fixed;Background-position: 0 0;It can be abbreviated as: background: # f00 url(background
Class Name:
. Demo {background: #666666; width: pixel PX; padding: 30px; font: bold 55px/100% "", "Lucida Grande", "Lucida Sans", Helvetica, Arial, sans; color: # fff; text-transform: uppercase ;}
Next, we add our own specific styles to each Demo, as shown below:
.demo1 { text-shadow: red 0 1px 0;}
The effect is good, but we have a headache that IE does not support the text-shadow effect, but in order
This problem many people will not know at the beginning, of course, including once I, when used, had to resort to the great groove and Niang. There is a way to set up online, but say clearly enough detailed system, say set font for: Lucida Console. The problem is, in the default mode, only the dot matrix font, which has what Lucida Console. So, after your own successful setup, take out and share the next pr
1. How to set text font, color, and size-Use font
Font-style: Set italic, for example, font-style: italic;Font-weight: Specifies the text width, for example, font-weight: bold;Font-size: Set the text size, for example, font-size: 12px; (or 9pt, refer to the CSS manual for different unit display issues)Line-Height: Set line spacing, for example, line-Height: 150%;Color sets the text color (note that it is not font-color), such as color: red;Font-family: font-family: "
clearer, and if shadow blur is not required, the blur value can be set to 0;color. It can use the RGBA color.Browser compatibility:Let's see an example.First, give all of the demo a common style and class name:. demo { background: #666666; width:440px; padding:30px; Font:bold 55px/100% "Microsoft Jas Black", "Lucida Grande", "Lucida Sans", Helvetica, Arial, Sans;; Color: #fff;
: #000;
It can be abbreviated as border: 1px solid #000;
Syntax: border: width style color;
Background (Backgrounds)
The attributes of the background are as follows:
Background-color: # f00;
Background-image: url(background.gif );
Background-repeat: no-repeat;
Background-attachment: fixed;
Background-position: 0 0;
It can be abbreviated as: background: # f00 url(background.gif) no-repeat fixed 0 0;
The syntax is background: color image repeat attachment position;
You can omit one or mo
colors (note not font-color), such as color:red;
Font-family set fonts, such as font-family: "Lucida Grande", Verdana, Lucida, Arial, Helvetica, song-style, Sans-serif;
All of the above can be written in one line of the Font property (except for the color property that needs to be written separately):
Font:italic bold 12px/150% "Lucida Grande", Verdana,
example:
Background:url ("Images/***.gif") #333;
can be written as
Background:url (images/***.gif) #333;
If you add quotes, it can cause some browser errors.
11. Group Selector (selectors)
When some element types, classes, or IDs have common attributes, you can use the group selector to avoid multiple duplicate definitions. This can save a lot of bytes.
For example, to define the font, color, and margin of all headings, you can write this:
H1,h2,h3,h4,h5,h6 {font-family: "
This is a foreign web design common English fonts (safe font) list for reference:
Font-family:arial, Helvetica, Sans-serif;
font-family: ' Arial black ', Gadget, Sans-serif;
font-family: ' Bookman old Style ', serif;
Font-family: ' Comic Sans MS ', cursive;
Font-family:courier, monospace;
font-family: ' Courier New ', Courier, monospace;
Font-family:garamond, serif;
Font-family:georgia, serif;
Font-family:impact, charcoal, sans-serif;
font-family: '
Arial, Helvetica, Sans-serif
This is a headingThis is a paragraph
' Arial Black ', Gadget, Sans-serif
This is a headingThis is a paragraph
' Comic Sans MS ', cursive, Sans-serif
This is a headingThis is a paragraph
Impact, charcoal, Sans-serif
This is a headingThis is a paragraph
' Lucida Sans Unicode ', ' Lucida
Serif to avoid using the default Serif font on the local machine when the client does not specify a font.
Because the linefeed font is very readable, the most widely used part is the text content of a publication or print, and other works in the form of a large text.
Common linefeed fonts include Georgia, Garamond, Times New Roman, and Chinese.
The font of the inlined line is relatively smooth, and the lines are generally even in width. It is suitable for use as an artistic word or title. B
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.