The so-called static resources, refers to pictures, JS, CSS and other files. The official note is here.
As described in a small project, the following is the directory structure of the project:
. ├──static│ ├──css│ │ ├──base.css│ │ ├──bootstrap.min.css│ │ └── font-awesome.min.css│ ├──font│ │ ├──fontawesome.otf│ │ ├──fontawesome-webfont.eot│ │ ├──fontawesome-webfont.svg│ │ ├─
| +-Uikit.gradient.addons.min.css| +-Uikit.min.css+-Fonts/| +-Fontawesome-webfont.eot| +-Fontawesome-webfont.ttf| +-Fontawesome-webfont.woff| +-FontAwesome. otf+-Js/+-Awesome. js+-Html5.js+-Jquery. min. js+-Uikit. min. js
Because there must be more than one page on the front-end page, each page has the same header and
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
| +-Uikit.gradient.addons.min.css| +-Uikit.min.css+-Fonts/| +-Fontawesome-webfont.eot| +-Fontawesome-webfont.ttf| +-Fontawesome-webfont.woff| +-FontAwesome. otf+-Js/+-Awesome. js+-Html5.js+-Jquery. min. js+-Uikit. min. js
Because there must be more than one page on the front-end page, each page has the same header and
Css knowledge (7)-box model and css knowledge Box Model1. Introduction
Starting from this section, we will go to the third part of this series-css rendering. This section describes the layout and rendering features of css on the page. There are two types: Text and block.
The first type is text. This part is relatively simple, such as font size, Font, color, background color, and whether to bold. The key point is to set the font, set the line height, and use relative values for text-related dista
before.
UI upgrade 2
Later, we got rid of the bootstrap dependency, implemented the menu bar style, and removed the button border, making the UI more concise. However, these menu buttons are based on the fontAwesome library.
UI upgrade 3
FontAwesome is a well-developed font library with over 400 icons, which results in a large font file size and affects the loading speed. Among the more than 400
electronic commercial site of the use of the new hot Small logo can be used in BASE64 format. Unfortunately, at the low end of the browser (IE6) is not supported by this method. Mode four: The target is also the character WebfontThe previously mentioned map is a map, and the mobile screen is a 1080-megapixel browser, which makes it easy to saw teeth in high-resolution situations. If you use svg vector graphics, you can't do the sprite process. It webfont
probably this:The rest of the questions allow me to finish my meal.==============2. How is ' \f33f ' displayed as an icon?For:Here is the use of Webfont, which is a "font", this font contains vector icons, such as ' \f33f ' is the corresponding vector icon encoding.Your code is not full, CSS should also contain this paragraph:@font-face{Font-family:' XXX ';/* Give your custom Webfont a name */Src: URL(' Xx
function Wds_generatecss () {varTXT = $.trim ($ ("#TxtText"). Val ()); if(txt = ="") {$.ALERTBOXSML ("Please enter what you need to generate!"); return; } varFontid =""; varFontFamily =""; varFontName =""; varFilelength =""; W_loading ( $); $("#submit_add_dynamic"). attr ("Disabled","Disabled"); $.ajax ({//type of submission data POST GETType"POST", //submitted URLsUrl:"/webfont/createcss", //submitted DataData: {"Strtxt": encodeURICo
F8FF belong to the user-font area. Originally empty, the user can define the shape of these characters in the font file. The Webfont icon that we see is generally selected in this section.(The above paragraph may not be professional, it is generally known that this is the right thing to do.) )To use a custom character, the approximate steps are:
Create a font file yourself, e000 the corresponding character shape of the Sina icon, save as a c
the IPhone and IPad.
About the Webfont loader, it's a JavaScript script that loads fonts that you can use without, but with the added benefit of using the words. For example, Firefox when loading Google Web fonts, in the @font-face load complete, will first display a surrogate font, and so on @font-face full load, the real font will replace the alternative font, which will cause the page flashing, and confusing, The
' ASC ' or ' desc '
Sortstable
Data-sort-stable
Boolean
False
Set to True to get a stable sort, we will add the _position property to the row data.
Iconsprefix
Data-icons-prefix
String
' Glyphicon '
Define the Font library (' Glyphicon ' or ' FA ' for fontawesome), use the ' FA ' to reference Fontawesome, and implement the effect with the Icons proper
String
' ASC '
Define sort by ' ASC ' or ' desc '
Sortstable
Data-sort-stable
Boolean
False
Set to True to get a stable sort, we will add the _position property to the row data.
Iconsprefix
Data-icons-prefix
String
' Glyphicon '
Define font libraries (' glyphicon ' or ' FA ' for fontawesome), reference fontawesome when using "FA", and impl
sites, they have some super high quality free fonts on the home page, and the font license for each font is clearly labeled.
There is another great tool on the Fountsquirrel, that is the Webfont builder. You can upload a single font file to the generator, it will automatically translate it into the other fonts you need, and generate the corresponding CSS code, you can insert directly into the site code. As long as the format allows,
Original: CSS know how much (7)--Box model1. IntroductionStarting with this section, we'll go into the third part of this series--css. This section describes some of the layout and rendering characteristics of CSS in the page. Includes two categories: text, block.First Class--text. This section is relatively simple, such as setting the font size, font, color, background color, whether bold, and so on. The focus is on setting the font, setting the height of the line, and using relative values for
1. IntroductionStarting with this section, we'll go into the third part of this series--css. This section describes some of the layout and rendering characteristics of CSS in the page. Includes two categories: text, block.First Class--text. This section is relatively simple, such as setting the font size, font, color, background color, whether bold, and so on. The focus is on setting the font, setting the height of the line, and using relative values for the distance between the text, which is a
Slide menus are widely used in website design and can be seen on many websites. This article introduces jQuery + CSS to implement a slide navigation menu code. For more information, see The Slide Menu. it is widely used in website design and can be seen on many websites. It can display key information, make it more readable and aesthetic, and meet the user experience value!
Today, I will show you how to use jquery and css to implement slide menus.
Download the effect display source code
To cre
said "code is not elegant", in fact, my understanding is poor extensibility. Therefore, this refactoring, fully consider the extensibility . Allows the user to customize the menu.
However, the reconstructed wangeditor is still very light weight, a more than 10 KB JS file, a 3KB css file, done! It's also very easy to use. One line of code is done:// in fact, the $editor returned is a jquery object that can perform any jquery operation, such as $editor. HTML (), $editor. Text () var $editor
To create a navigation menu, Let's look at the HTML structure first:first, we refer to NORMALIZE.CSS as the default style to ensure that our menus are the same in every browser. We use the font icon fontawesome to display the menu item down Icon. We also need to invoke jquery to implement the menu Switch.Panel buttonsEach site Panel navigation button is similar. It is often an icon font, such as fontawesome
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.