, with the following installation commands:NPM Install Gulp.spritesmith–save-devThen create the task in the Gulpfile.js file with the following code:var spritesmith = require (' Gulp.spritesmith '); Introduction of Sprite Plugin Gulp.task ("Sprite", function () { //define Task gulp.src ("theme/images/**.png") // Process the PNG file under the theme directory . Pipe (Spritesmith ({
idea is to write the application scenario, and then describe the principle.Q:/api/v1/The app corresponds to the corresponding API version?A: This scenario is described in the article "dealing with version upgrade API". A simple description is the V2 version of the V1 version of the API, only rewrite the parts that need to be changed, a common model, in the API test document detailing the return content, as a comparison.Q: Is there a protocol that is more efficient than the HTTP protocol for app
article: Strong independence, such as the author of this blog, the outer layer of the article tag
aside: Can be used as a container for the content of the page theme, like Sidebar, comments, like the comments at the bottom of this blog aside
The use of the HTML5 label can be described in this article: HTML5 Semantic label Usage specificationThis blog has nothing to say about an incident, to stand on the shoulders of the browser to develop, because the front
above, and visited must be written in second. If it is written at the end, after the access, it is based on the priority order of the same level elements, the accessed style will overwrite the hover and active, which will cause continuous effects.
Compatibility problem: IE6 does not support pseudo classes of any label other than a. IE6 and later browsers support
?1. Use no semantic tags as little as possible: div and span2. When the semantics are not obvious, you can use either DIV or P, use p as much as possible, because P has the upper and lower spacing in the default case, which is advantageous to the compatible special terminal;3. Do not use the plain style tags: b,font,u,i,del, to use CSS settings.4. Need to emphasize the text, can be included in the strong or the EM tag (browser preset style, can be specified with CSS without them), strong default
In general, the JS code is more and more large, it is best to put it in a JS file,can be introduced via SRC, which is highly maintainable and cacheable (load once without loading)Features to facilitate future expansionCorrect wording:Error wording:If there is nothing in the double label, you can add it directly.Smooth degradation does not support js:The core of JS is EmascriptI. Grammatical compositionCase sensitiveAn identifier is the name of a varia
Struts learning path (2) Front-end OGNL trial, strutsognl1. Significance of the appearance of OGNL
In mvc, data is transferred between different layers. This kind of circulation will face some dilemmas. These dilemmas are caused by the different forms of data in different worlds:
A. the data on the page is a flat string with no data type. No matter how complicated your data structure is, how many data types
Vue 2.x + Webpack 3.x + Nodejs multi-page Project Framework (previous--pure front-end multi-page)@ (HTML/JS)In general, it is better to use Vue as a single-page application, but there are additional benefits to using multiple pages in special cases. For example, the multi-webview architecture of the hand Q, the newly opened page facilitates the right stroke of the iOS and avoids the refresh of the page when
of the text or picture, and it cannot be changed.Convert to block element when set to Display:blockvoid elementCannot contain any content, directly closedThe difference between link and @import in 5.CSSThere are 3 main ways to use CSS in your page:Inline CSS: Inline add define Style property valueOuter chain CSS: page header inline call and outside link call, link and @import.Link@import:Both are external ways of referencing CSS, but there are some differences:The difference between 1:link is X
Not used inside the inline
Defer: Download scripts in parallel instead of blocking, and after the script is loaded, the browser will run JS in the order of reference before the DOM triggers, setting the "defer" property in the tag when the script does not need to run immediately. (The script is not included in a function block immediately, so it is executed during the loading process.) After setting the "defer" property, ie does not have to wait for the script to load and execute. T
at how it works:It is known from the diagram that it needs to run the client program locally and encrypt the communication with the service-side program that connects to the remote proxy server. Then the proxy port is simulated locally, so that the native traffic is encrypted by the local client and then transferred to the remote server to complete the proxy forwarding service.So we just need to buy a Linux-based VPS server, the cost of about 15 yuan per month, after the installation of a good
as the keywordD, variable names must not be the same in the same function variableSoft requirements: A, to be able to look at the text to understand the meaningB, first letter lowercaseC, in addition to the first word, the first letter of the other words capitalizedHow to use variables: Merge declarations: Declaration of multiple variables of the same type, which can be done in a declaration statementDeclaring when initializing: initializing a variable while declaring itInitialization: The proc
abbreviations when using abbreviations to not allow color names, RGB () to ensure that the 16-binary notation is uniform in capitalization. (Recommended capitalization)2D Position (background-position)You must give the value of the background-position in two directions. Because the default is 0% 0%, but gives only one direction value, the other side defaults to the Center property value.textThe font-family attribute should use the English example: font-family: "Microfoft Yahei"; Font-size attri
The previous blog has received a lot of attention from everyone. Thank you for your support. The so-called dry goods is also my vision, that is, to let everyone see the principle of implementation, use it in their own projects, and cheat the boss's bonus, _ ^. As a UI library, Kit has no intention of letting everyone learn about its core and familiarized themselves with my API. This follow-up learning method has no meaning at all. jquery is hot today,
1. Floating height collapseCause: The height of the parent element is stretched by the quilt element, and when set floating, it is detached from the document stream, and the child element cannot prop up the parent element, resulting in a high collapseWorkaround. Clearfix:before,.clearfix:after{content: "";d Isplay:table;clear:both;}2. Brother-Son LinkageWorkaround 1:paddingWorkaround 2:float (but conditiona
This year, Google launched Android Auto, a car Android, designed to provide entertainment, navigation, and other functions. Android Auto, however, is not the end point, and now news reports that Google is developing a vehicle-mounted Android system that can completely replace the bottom-line control system of the car, which is likely to be announced next year. The current Android Auto is not responsible for controlling the car, and the new Android sys
configuration. While JavaScript is interpreted to perform without generating intermediate files, "read a sentence, execute a sentence", the execution can generally be done in three ways:1. The general browser comes with the JS interpreter, which can be used directly by the browser;2. Special interpreter software can be installed node. js, executing the. js file;3. Executed with the Web page, using the Third, the data typeJava is a strongly typed lang
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.