Sass Learning Summary

The following code is based on the scss format: The difference between.sass and.scss "Sass" can only use Sass's old grammar rules (indentation rules), "scss" uses Sass's new grammar rules, which are SCSS grammar rules (similar to CSS grammar format). .sass: $font-stack: Helvetica, sans-serif //Define variables $primary ...

Posted by keeB on Sat, 06 Jul 2019 20:16:27 +0200

jacascript judges the size and location of elements

Foreword: This is the author's own understanding and arrangement after learning. If there are any mistakes or doubts, please correct them and I will keep updating them.    getBoundingClientRect() The simple way to determine the size and location of an element is to use obj.getBoundingClientRect(). The obj.getBoundingClientRect() method return ...

Posted by BobRoberts on Thu, 04 Jul 2019 01:14:11 +0200

Front-end misunderstanding of fast platoon

Writing this article stems from a previous interview and from various examples on the Internet that native sort s are faster than fast queues, because they have not written fast queues well. I was asked to write a quick line during the interview. I wrote a very concise piece of code that I read online (which I later found was in the JavaScript ...

Posted by matthewhaworth on Sat, 29 Jun 2019 21:25:46 +0200

Primary JS realizes the three-level linkage selection of provinces, cities and counties

Original address Look at it. Write in front Some time ago, I wrote something about the weather. The choice of cities in the provinces and cities (counties) made me very headache. Most of the searches on the Internet relied on plug-ins or third-party libraries. I felt that the code would be very heavy, so I simply realized several ways ...

Posted by mukeshgulia on Mon, 24 Jun 2019 00:27:46 +0200

Reconstruction Tour (2)

Multi-column Layout of css3 Attributes and Realization of Waterfall Flow by JS Background: I planned to summarize the knowledge points of flex layout by myself before, and found myself unable to start. What's the reason? I reflected on it. The reason is very simple: less use, more time use percentage, floating and positioning solution. This al ...

Posted by rugzo on Sat, 22 Jun 2019 20:54:03 +0200

Test Chapter of Continuous Integration

Continuous integration unit testing karma Karma yesGoogleAn Open Source BasedNode.js Of JavaScript Test Execution Process Management Tool(Test Runner). The tool can be used to test all mainstreamsWebBrowsers can also be integrated into CI (Continuous integration)Tools can also be used with other code editors. Interface-free browsers we testedph ...

Posted by paddycallaghan on Thu, 20 Jun 2019 20:33:57 +0200

css style fragment

1. Vertical alignment If you use CSS, you will be confused: how do I align elements in the container vertically? Now, using CSS3 Transform, you can gracefully solve this puzzle: .verticalcenter{ position: relative; top: 50%; -webkit-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%) ...

Posted by goclimb on Tue, 11 Jun 2019 01:09:42 +0200

Java Mail Development (3): Solve the problem of scrambling attachments and displaying friendly names

In the last article( Java Mail Development (2): Send an email with graphics and text and attachments using JMail (below) ) In JavaMail, we learned how to send a complex email. There are two remaining problems: 1. The appendix name can only be in English and Chinese. 2. The display of friendly names. When we use 163 mailboxes to se ...

Posted by Modernvox on Sat, 08 Jun 2019 03:34:22 +0200

The pits in which JavaScript operates on DOM

There are many cross-browser pits in operating DOM for js. It took me nearly a week to sort out these pits. I will sort out the pits according to the examples. The working mode of DOM is to load the static content of documents first and refresh them dynamically. Dynamic refresh does not affect the static content of documents. PS: All DO ...

Posted by JDBurnZ on Thu, 06 Jun 2019 01:26:06 +0200

JavaScript Implementation of Drag and Drop Function of Netease Cloud Music Web Site Logon Window

Explain You may find that there are many websites whose login windows or login boxes can be dragged, and even their site prompt boxes can be dragged. You may be interested in the implementation of this function, so this article can help you! Specific website examples take Netease Cloud Music Web site as an example, the specific effect is as fol ...

Posted by stan801003 on Mon, 03 Jun 2019 00:29:36 +0200