, thereby avoiding the use of images. It is implemented using CSS @font-face to introduce fonts. Many internet companies have pioneered this approach, such as using their own fonts on Apple's website. Google also launched a free Webfont cloud hosting service, custom fonts in foreign websites are well applied. In Chinese, the custom font has not been widely used, what is the reason?ChineseWebfont's Dilemma:
Large Chinese font size
English
viewers. Therefore, the previous common method obviously cannot meet our requirements. Therefore, we need more complicated and suitable methods for all browsers.@ Font-face {Font-family: 'mywebfont ';SRC: URL ('webfont. eot');/* ie9 */SRC: URL ('webfont. EOT? # Iefix') format ('embedded-OpenType '),/* IE6-IE8 */URL ('webfont. woff') format ('woff'),/* modern bro
FA-LG icon size (increase 33%), fa-2x, fa-3x, fa-4x, or fa-5x class.fa-stack-1x fixed-size icons, fa-stack-2xUse any of the rotate and flip icons fa-rotate-* and fa-flip-* classes. * How many degrees are represented: fa-rotate-90Use the Fa-spin rotation class to get any icons. Able to handle Fa-spinner, Fa-refresh, Fa-cog well.Fa-border borderDemo Address Demo:Http://www.0917cc.com/blog/b926.htm
@font-face {
font-family: ' Fontaweso
size, it is also necessary to create a "mobile device" setting in the generated HTML file configuration, so that the resulting HTML file "contains viewport labels" so that it can be displayed normally. (Fig. 6-9)
Base 56. Web font settings
When a prototype uses some special fonts, it will not display properly on devices that do not have the font installed. Web fonts can be a good solution to this problem. The use of web fonts consists of two ways.
Way one, link ". CSS "file (Figure 6-10)
Pros:
Font Awesome is a setTwitter bootupDesigned icon font library. This set of icon fonts contains almost all the icons that may be used on the webpage. In addition to the default icons of Twitter bootup, there are also social network icons,WebApplication icons and editor Icons can be used for commercial projects for free.
You can go to the official site to view more detailed information and use cases.
Follow these steps:
1. download the latest Font Awesome from the official website.
There are five
Implement the icon button framework with pure css
Fa-lg icon size (increased by 33%), fa-2x, fa-3x, fa-4x, or fa-5x class.Fa-stack-1x fixed size icons, fa-stack-2xUse any rotate and flip icons fa-rotate-* and fa-flip. * Represents how much: fa-rotate-90Use the fa-spin rotation class to get any icons. Can handle fa-spinner, fa-refresh, fa-cog.Fa-borderDemo of demo address:Http://www.0917cc.com/blog/b926.htm
@ Font-face {
Font-family: '
The social symbols used here refer to a CSS file
The code is as follows
Copy Code
/* FONT PATH* -------------------------- */@font-face {font-family: ' Fontawesome ';Src:url ('.. /fonts/fontawesome-webfont.eot?v=4.0.3 ');Src:url ('.. /fonts/fontawesome-webfont.eot #iefix amp;v=4.0.3 ') format (' Embedded-opentype '), url (' ... /fonts
1. Introduction DownloadWangeditor is a lightweight web Rich Text editor written in JavaScript that relies on jquery and fontawesome font libraries to support all browsers . With wangeditor , you can easily create Web Rich text boxes and customize the Extended menu functionality. Wangeditor all source code has been downloaded on GitHub.:https://github.com/wangfupeng1988/wangEditorChat QQ Group:1649990612. Generate Rich text box 2.1 downloadDownload t
modified font, the font name is Fontawesome.2 Create a WinForm application and design the form interface as follows:The code is as follows:1 usingSystem;2 usingSystem.Collections.Generic;3 usingSystem.ComponentModel;4 usingSystem.Data;5 usingSystem.Drawing;6 usingSystem.Linq;7 usingSystem.Text;8 usingSystem.Windows.Forms;9 Ten namespaceWinformfont One { A Public Partial classIconfontdemo:form - { - PublicIconfontdemo () the
We use some commonly used fonts when designing Web pages, and for some fonts that are not commonly used, we can replace them with pictures, and the fonts provided by Google API will not require any pictures, but some fonts that are not used, will be linked to these fonts by Google server when the user opens the page. So that the page is displayed, the user will not feel any discomfort in the process.
For many Web designers and developers who are obsessed with fonts, yesterday's news about the G
How Android displays custom fonts in the idea Eclipse UI Editor Preview
The font to be displayed will be copied to. Android-sdk/platforms/android-[version]/data/fonts folder below For example: Fontawesome-regular.ttf
Under Android-sdk/platforms/android-[version]/data/fonts, open fallback_fonts.xml At the end of the add: " Span style= "Color:rgb (255,0,0);" >[the file name that is copied to the file, such
with a value (product factor)
Font family (font-family): Specifies that the text uses a font or font sequence, the value is wrapped in single quotation marks, and the default is Arial.
Demo:body{font-family:helvetica,verdana,sans-serif;}
/* Note */: In order of precedence. separated by commas. As in the font definition, if you don't have a Helvetica font on your computer, but you have Verdana, you'll see your text in Verdana.
@font-face Embedded fonts (extra-curricular extensions)
@font-face is
content of these things? Use the font editing software to open the downloaded font file and you'll understand.
Font-awesome CSS File contents
icon corresponding to the encoding
Haha, do you think this idea is great!
How to use the self-created font file?
Here to introduce is @font-face, this statement browser compatibility is also very good, including the low version of IE support is also very good. But the compatibility of the various browsers for the available fonts is not so friendly, here
analyzed the three types of wangEditor menu buttons and determined that the "indent" button belongs to the first type.
The first type is represented by "btn. The other two types are represented by "dropMenu" and "modal", which will be described in later articles.3.7 txt (fontAwesome style)
(I would like to remind you that if you are not familiar with fontAwesome, you can check "Please use
Bootstap datetimepicker error TypeError: intermediate valueBootstrap datetimepicker has multiple versions. In the official link, it is only a datepicker. If there is no time option, the original datetimepicker will not be updated and the new version of jquery cannot be used.Now begin;Https://github.com/smalot/bootstrap-datetimepickeris still correct, but it is easy to use.Error:
TypeError: (intermediate value). toString (...). split (...) [1] is undefined
... D "? False: k. title; this.
Text basic Style
Paragraph beautification
Special Processing of text information
Text link Style
Replace common icons with font library Fontawesome
1. Text Basic style
font
font-family: "Microsoft Jas Black", Arial, Verdana, "T IMEs New Roman ";
Chinese or fonts have spaces enclosed in double quotes
size
font-size:px em
NBSP;
color
color: #000;
This article describes how to add static resource paths to aiohttp. The so-called static resource refers to images, js, css, and other files. The official description is here.
A small project is used to describe the directory structure of the project:
.├── static│ ├── css│ │ ├── base.css│ │ ├── bootstrap.min.css│ │ └── font-awesome.min.css│ ├── font│ │ ├── FontAwesome.otf│ │ ├── fontawesome-webfont.eot│ │ ├──
type we use "BTN" to express. The other two types are denoted by "dropmenu" and "modal", which are described later in this article. 3.7 txt (fontawesome style)(In this reminder, do not know fontawesome friends can first go to see "please use Fontawesome instead of web icon small Icons", fontawesome this thing very goo
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.