Start blogging again. 1.1 points accumulated, uninterrupted.Read the Nanyi Teacher's Chinese Web page Font Development Guide, do some records.Complete Original http://www.ruanyifeng.com/blog/2014/07/chinese_fonts.html1:font-family rulesfont-family: Georgia, "Times New Roman", "Microsoft YaHei", "微软雅黑", STXihei, "华文细黑", serif;(1) Priority to use the preceding font.(2) If the font cannot be found, or if the font does not include the text yo
figure:
p { text-align: center; color: black; font-family: arial;}
Space and case
Most Style Sheets contain more than one rule, while most rules contain more than one declaration. Multiple declarations and spaces make the style sheet easier to edit:
body { color: #000; background: #fff; margin: 0; padding: 0; font-family: Georgia, Palatino, serif; }
Whether or not to contain spaces does not affect the effect of CSS in the browser. Similarly,
/garogier_unhinted-wetfont.woff ') format ('woff '),
url('fonts/garogier_unhinted-wetfont.ttf') format('ttf'), url('fonts/garogier_unhinted-webfont.svg#garogierregular') format('svb');font-weight:normal;font-style:normal;}
2. Apply Fonts
body{font-family:"GarogierRegular";}/* The browser may not support our fonts. Therefore, you need to prepare multiple alternative fonts. The code above can be changed */
/*
CSS has two types of fonts: General font family and special font f
Vim/etc/X11/xorg. confFontPath "/usr/share/fonts/yahei" apt-getinstallmsttcorefonts fonts will be installed in/usr/share/fonts/truetype/msttcorefonts: AndaleMono, Arial, ComicSansMS, courierNew, Ge vim/etc/X11/xorg. conf
FontPath "/usr/share/fonts/yahei"
Apt-get install msttcorefonts
The font will be installed in/usr/share/fonts/truetype/msttcorefonts.
They are:
Andale Mono, Arial, Comic Sans MS, Courier New, Georgia
Impact, Times New Roma
, such as Time New Roman. I strongly recommend several fonts for web design, such as verdana, tahoma, and georgia. In fact, the font like Verdana was designed by the world's top font designers for almost two years. Microsoft pays for it and then provides it to users for free, this font is part of IE installation. If you have installed IE 4 or later, you must have this font in your computer, so you don't have to worry about whether the user has this fo
In any case, Microsoft's fonts are well designed. The commonly used fonts are not installed in Ubuntu by default. However, you can manually install these fonts. 1] In the Add/delete program, search for font. The first one should be: MicrosoftCoreFonts. After you select this one and change it, the fonts will be installed as follows: installerforMicrosoftTrueTypecorefontsThisp no matter what, Microsoft's fonts are well designed. The commonly used fonts are not installed in Ubuntu by default. Howev
Web font knowledge, web font
Start writing a blog again. 1.1 points of accumulation, uninterrupted.
I read instructor Ruan Yifeng's Chinese webpage font Development Guide and made some records.
Complete original article http://www.ruanyifeng.com/blog/2014/07/chinese_fonts.html
1: font-family Rules
Font-family: Georgia, "Times New Roman", "Microsoft YaHei", "", STXihei, "文 ", serif;
(1) Give priority to the front font.
(2) If the font cannot b
Columns syntax: columns:[column-width] | | [Column-count]Sets or retrieves the number of columns and the width of each column of an objectWhere: [Column-width]: Sets or retrieves the width of each column of an object; [Column-count]: Sets or retrieves the number of columns of an object.CSS code:Body{Font:14px/1.5 Georgia,serif,sans-serif;}P{margin:0;padding:5px 10px;background:#eee;}H1{margin:10px 0;font-size:16px;}. Test{width:628px;Border:10px Solid
the header. The following is our current statement for h1, which has not been changed:
h1{
color:#e33a89;
font:27px/27pxBaskerville,Palatino,"PalatinoLinotype",
"BookAntiqua",Georgia,serif;
margin:0;
text-shadow:#aaa5px5px5px;
}
These statements work well on our basic web page. The 27-pixel text size is also suitable for displaying the fonts we set for h1. But for the font "Beautiful" that I want to use, 27 pixels is too smal
want to apply a custom special font for the header, below is our current statement for H1, unchanged version of:H1 { color: #e33a89; Font:27px/27px Baskerville, Palatino, "Palatino Linotype", "book Antiqua", Georgia, serif; margin:0; Text-shadow: #aaa 5px 5px 5px; }These statements work well on our basic Web page, and the 27-pixel text size is also good for the display of those fonts we set for H1. But 27 pixels is too small for the font I want
called by the show_posts view. Jinja allows you to use a for loop for anything that can be iterated.
It is also important that, in order to output variable content, you need to add curly braces outside the variable.
{{variable}} {{post[' text ']|safe}}
Now that we've decided to allow users to enter wayward HTML code in their blog post, we have to use the template's safe filter to output the body block in the blog post.
Jinja automatically ignores any special characters by default, so we have
Flaskr {% if not session.logged_in%} Log in {% of else%} log out {% endif%} {% of message in get_flashed_messages ()%} {{message}}} {% ENDFOR%}
Login.html:
Login{% if error%}Error: {{Error}} {% ENDIF%} {% Endblock%}
Show_entries.html:
{% extends "layout.html"%} {% block body%} {% if session.logged_in%} {% ENDIF%}
{% for entry in entries%}
{{Entry.title}}{{Entry.content|safe}} {% Else%}
Unbelievable. No entries this far
{% Endblock%}
We can see a topic posting application on QQ personal center or Sina Weibo. jQuery
This application enables real-time statistics on the number of input words, and interacts with the background through ajax to insert the input content into the topic list. I divided the entire process into two parts. This article explains the first part of jquery's frontend interactive operations.
First view the example: DEMO
XHTML The code is as follows:
DemoReleased content...
XHTML
The following small series for everyone to bring a CSS web security font combination of detailed instructions. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
Common font Combinations
The Font-family property is the name of multiple fonts as a "strain" system to ensure maximum compatibility between browsers/operating systems. If the browser does not support the first font, it tries the next font.
The font
design. The following from their Folio Display page, once again shows how large fonts help create open spaces. Even with this refreshing hairline, they use a wide margin. Another commendable point is their excellent choice of line height [inline blank]. Line spacing is set much larger than the default value, greatly enhancing the readability of text. Maybe next time you can try this technique in your own design as well.
Web Design ledger, with mood fontsFinding the perfect font requires const
suitable for use as headings, such as Arial;serif fonts for use as paragraph text, such as time New Roman. For web design, there are a few fonts that I highly 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 responsible for the bill, and then free to users, this font is part of IE installation, if you installed the version of IE 4, your computer must
headquarters to Atlanta, Georgia.
The code is as follows:
UPDATE publishersSET city = 'Atlanta ', state = 'ga'
In this example, the names of all publishers are changed to NULL.
The code is as follows:
UPDATE publishersSET pub_name = NULL
You can also use the calculated value in the update. In this example, all prices in titles are doubled.
The code is as follows:
UPDATE titlesSET price = price * 2
B. use the WHERE clause with the UPDATE stateme
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.