CSS in the text control in the previous article has a lot of introduction, but about the font has not. Today to introduce some English fonts, I hope that in the future font settings, to your coding help.
Arial
Arial is a set of sans-serif TrueType fonts that are distributed with multiple sets of Microsoft apps. Although the proportion and character weight (weight) and Helvetica are very similar, but Arial is actually Monotype grotesque series of v
″, Sans-serif;
This is a good choice, but you will also find that the new version of Google, YAHOO, Youtube, Bing, and even MSN uses Arial as the first default font. So in terms of aesthetics and readability, Arial should be perfectly acceptable.
In general, setting the font-family will eventually set the universal font family to ensure its security, such as Google's set to Font-family:arial,sans-serif, b
and the other with jquery.
First of all, how to use CSS3 to achieve:
Html:
Css:
*{
margin:0px;
padding:0px;
font-family: "Microsoft Yahei", Helvetica, Sans-serif, Lato;
}
li{
list-style:none;
}
a{
text-decoration:none
}
. nav{
width:100%;
height:40px;
Background-color: #222;
margin-top:100px;
Overflow:hidden
}
. nav-list{
width:1000px;
margin:0 Auto;
height:40px
}
. Nav-list li {
float:left
}
. Nav-list Li a{
di
Third day text-related styles
1. Units that are easily confused or forgotten
More interesting phenomenon: foreign designers like to use EM, percentages, keywords (small, xx-small, etc.) to set the font size of the Web page, the domestic like with PX and PT (note, if the page is used as a unit of EM, IE6 will appear a bug, you can specify any one percentage to resolve)
The browser default font size is 16px
In the Chinese window system, ie browser default Chinese font is the song or the new song b
Due to the separation of the front and back, but also required to upload local pictures and so on a series of needs, where the use of TINYMCE to solve a lot of holes in the middle, write a memo.
The first page introduces
type=src="/js/admin/tinymce.full.min.js">Script ",
Also introduce the JS you need to instantiate
In HTML id="text">textarea>
The following is the page JS
ConstBAR1 = [' fontsizeselect fontselect formatselect ',' bold italic underline strikethrough ',' codesample b
the Despine ().temporarily set image style
Although it is not difficult to adjust the style , you can still invoke the Axes_style () function in the WITH statement to temporarily set the drawing parameters. This feature allows you to paint in different styles.
With Sns.axes_style ("Darkgrid"):
plt.subplot (211)
Sinplot () plt.subplot (
212)
Sinplot (-1)
Overloaded Style parameters
You can customize the Seaborn style by passing in a dictionary to the RC parameters in the Axes_style () a
Ar pl UKai CN
Ar pl ZenKai Uni
Sans-serif
Ubuntu
WenQuanYi Micro Hei
Bitstream Vera Sans
DejaVu Sans
WenQuanYi Zen Hei
Ar pl UMing CN
Ar pl ShanHeiSun Uni
tahoma. ttf verdana. ttf verdanab. ttf verdanaz. ttf tahomabd. ttf verdanai. ttf) to the zh_CN directory, and then
Reference:
Cd zh_CN
Sudo mkfontscale
Sudo mkfontdir
Sudo fc-cache
2. Modify the language-selector.conf File
Reference:
Sudo cp/etc/fonts/language-selector.conf/etc/fonts/language-selector.conf_backup
Sudo gedit/etc/fonts/language-selector.conf
Use the following code to replace all the content in it. Note that I did not place the wenquanyi font in the second place according to Vstar
Body {font-family: "Helvetica Neue", Helvetica, Stheiti, Sans-serif;}iOS 4.0+ uses the English font Helvetica Neue, before the iOS version is degraded using Helvetica.The Chinese font is set to Chinese blackbody stheiti.It should be added that the Chinese blackbody does not exist in the iOS font library (Http://support.apple.com/kb/HT5484?viewlocale=en_US), However, the system will automatically hit the Chinese blackbody Stheiti compatible with the sy
Some fonts of winxp are installed to meet aesthetic requirements. However, when I used firefox and opera to browse the Web page, the Chinese text was too serious and my eyesight was extremely fatigued. For this reason, there was no small drop of "Zhen Shi Ming", and the idea of giving up was also generated, but now I remember that my perseverance was good! Below is my fonts. confserifTahomaSimSunSimHeiBitstreamVera
Some fonts of winxp are installed to meet aesthetic requirements. However, when I
you need to modify the color, you can quickly find it.
/*------------------------------------------------------------------
# [Color codes]
# Dark gray (text): #333333
# Dark Blue (headings, links) #000066
# Mid Blue (header) #333399
# Light blue (top navigation) # CCCCFF
# Mid gray: #666666
#*/
Alternatively, you can select the color used to describe your layout. For a given color, you can list the blocks that use the color. Of course, you can also choose to list colors by page elements.
/
ios systems that do not support-apple-system, the Chinese/English/numbers of 文 are called;
Sans-serif will call the Chinese/English/numbers of 文 in non-ios9 +;
Sans-serif calls the Chinese/English/numbers of apple under ios9 +;
In Android, sans-serif calls the Chinese/English font of the system. Generally, no additional settings are required;
In general,
sleep (2) error_message=self.dr.find_element_by_id (' tip_btn '). Text self.assertin (' The user does not exist ', error_message) # Use the Assertin (A, B) method to assert ainbdeftest_login_user_null (self): ' User name is blank, password is correct ' Self.login (', ' kemi_xxx ') #用户名为空, password correct error_ message=self.dr.find_element_by_id (' tip_input1 ') .text self.assertequal (error_message, ' Please enter login username ') #用assertEqual (A, B) method to assert a== Bdefteardown (
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.