Elevation 6.1 Understanding Object Self-reading

object Objects have properties, Attribute types Data attributes and accessor attributes Data attribute Data attributes contain data values: Value The characteristics of data attributes (used to describe the behavior of data attributes): [[Configurable]]: - Can we pass? delete Delete attributes to redefine attributes ...

Posted by Magestic on Sat, 30 Mar 2019 19:54:30 -0700

Box-shadow usage instructions and compatibility issues in css3

CSS3 box-shadow property description: box-shadow: h-shadow v-shadow blur spread color inset; h-shadow: The distance of horizontal offset of shadow, greater than 0 means right offset, less than 0 means left offset, equal to zero equals no horizontal offset. This parameter is necessary. v-shadow: The distance of shadow vertical migration, ...

Posted by LoStEdeN on Fri, 29 Mar 2019 12:54:29 -0700

Tracking user information using canvas fingerprinting

Summarize the process of using canvas fingerprinting Requirement Analysis Tips pictures are not posted, wait for me to test to post to you, upload pictures is very troublesome, find a quick way to mark down; Number of points Whether to land Landed. Record userId to determine whether to praise Not logged in 1:Problems wil ...

Posted by idire on Fri, 29 Mar 2019 05:15:29 -0700

On the Loss of Computing Accuracy in JavaScript

Abstract: Because computers use binary to store and process numbers, they can not accurately represent floating-point numbers, and there is no corresponding encapsulation class in JavaScript to process floating-point operations. Direct calculation will lead to loss of operational accuracy.   In order to avoid the difference of accuracy ...

Posted by freedomsam on Wed, 27 Mar 2019 18:45:29 -0700

Javaascript Foundation (Style Operations, Browser Compatible Style Operations, Other Style Related Properties, Scroll Styles) (30)

1. Style operation: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> #box1{ width: 100px; height: 100px; background-color: red; margin-top: 50px; } </style> <script type="text/javascript"> wi ...

Posted by jblallement on Wed, 27 Mar 2019 16:06:29 -0700

Front End Compatibility Notes 2016

Work for more than a year, found that bloggers do not write much, in line with the principle of sharing, this year has also accumulated some knowledge, I hope you less trample pits, of course, trampling pits is not necessarily a bad thing, it is a growth. Front-end production considerations: Browser compatibility, IE7, Google, Firefox, 360, ...

Posted by drifter on Wed, 27 Mar 2019 13:36:30 -0700

css3 elastic layout and multi-column layout

css3 elastic layout and multi-column layout Flexible Box is the flexible layout of the box model in css3, which adds a lot of flexibility to the traditional layout. Elastic box foundation Define an elastic box Define the display attribute on the parent box: #box{ display: -webkit-flex; //Compatibility settings for webkit kernel ...

Posted by chris9902 on Tue, 26 Mar 2019 09:24:30 -0700

js obtains img width and height

Knowledge point 1 If var img = new Image (100, 100) and img.src = 1.png are written, the IMG can be cached into the browser, which is often used for image preloading. Knowledge point 2 html code: <img src='1.png' style="width:400px" /> js code: var imgW = document.getElementsByTagName('img')[0].style.width; In order to get t ...

Posted by moiseszaragoza on Mon, 25 Mar 2019 20:24:29 -0700

Commonly used JS picture scroll (seamless, smooth, scroll up and down left and right) code

Commonly used JS image scrolling (seamless, smooth, up and down left and right scroll) Code complete innerHTML: Set or retrieve HTML within the object start and end tags Parameters: Commonly used JS image scroll (seamless, smooth, up and down scroll left and right) code innerHTML: Set or get HTML in object start and end tags scrollHeight ...

Posted by snoopgreen on Fri, 22 Mar 2019 14:03:52 -0700

Event Spread and Bubble

Characteristic description and schematic diagram: Standard browsers and Ie9 + browsers both support bubble and capture of events, while IE8-browsers only support bubble Standard and ie9 + browsers use stopPropagation() or cancelBubble to prevent event propagation, while ie8 - uses the e.cancelBubble attribute to prevent bubbles. Note that ...

Posted by 486974 on Fri, 22 Mar 2019 13:15:55 -0700