• Realization of mask screen function in CSS3


    Recently, I saw a kind of bullet curtain effect on station B called intelligent anti blocking bullet curtain, which is the legendary mask bullet curtain. After opening, the effect is probably like this I don’t need to worry about whether the peerless face of the God Goddess is blocked by the gaudy barrage. It’s amazing. […]

  • Bit field isa pointer


    1、 Isa pointer structure union isa_t { isa_t() { } isa_t(uintptr_t value) : bits(value) { } Class cls; uintptr_t bits; #if SUPPORT_PACKED_ISA // extra_rc must be the MSB-most field (so it matches carry/overflow flags) // nonpointer must be the LSB (fixme or get rid of it) // shiftcls must occupy the same bits that a […]

  • Using div mask to solve the problem of invalid checkbox directly checked by mouse


    In the process of front-end development, there is a situation that needs to be checked. For the convenience of user operation, click event is put on Div. (knockout.js is used) The code is roughly as follows: Copy code The code is as follows: <div data-biind=”click:clickevent”> < input type = “checkbox” > < span > please […]

  • (transfer) go new file permission does not match the setting


    Original: https://blog.csdn.net/lipengfeihb/article/details/54415283 I. Problems fileName := “/Users/my/tests/perm_file” f, _ := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0666) // code f.Close() The above code is to open a file. If the file does not exist, a new file will be created. At the same time, the permissions are set to 0666 (- RW RW RW RW -), but the permissions […]

  • Lenovo system x3650 setting management interface address


    1. Turn on the server. 2, display SetupWhen prompted, press F1. (this prompt is displayed on the screen for only a few seconds. F1 must be pressed quickly.) If both the power on password and the administrator password are set, you must enter the administrator password to access the full Setup Utility menu. 3. In […]

  • Explain Canvas-based Video Mask Plug-in


    Adding a cover to a video to block an area of the video, and not displaying the delimited area in a certain period of time, such as the 10th to 20th minutes. The application scenarios include occluding the guard view icon, occluding the advertisement in the lower right corner of the video, acting as mosaic, […]

  • Two methods of adding masking effect to background image by CSS using background-color


    If a div sets background–color and background-image at the same time, the color is below the IMG layer and can not achieve the masking effect, so we need to create a div as its sub-div, and then set the background color of the sub-div. Two methods are introduced: First, the code is as follows: css: […]

  • Realization of alignment of CSS mask in full screen


    The specific code is as follows: <style> #toastLoaderFullScreen { height: 100%; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999; background-color: rgba(224, 38, 38, 0.5); } #toastLoader { position: absolute; left: 50%; top: 45%; width: 350px; margin-left: -19px; /* background-color: blue; */ } #toastLoaderText { position: fixed; top: 53%; left: 50%; width: […]

  • Unity shader to achieve masking effect


    In this paper, we share the specific code of Unity shader to achieve the masking effect for your reference. The details are as follows. Effect: Shader code: Shader “Custom/Mask” { Properties { _ MainTex (“Base (RGB), 2D) =”white”{}// target image, that is, the image that needs to be masked _ MaskLayer (“Culling Mask”, 2D) = […]