I. purpose: the same set of pages can be compatible with devices of different resolutions.
2. Implementation mode: using grid system to achieve:
A row is divided into 12 squares. You can set an element to occupy several squares according to the size of the screen.
Posted by antonello on Tue, 25 Feb 2020 20:06:38 -0800
Functions of three Synchronizers
This paper mainly introduces three thread synchronizers, their functions are as follows:
CountDownLatch: make sure that all sub threads are summarized after execution. There is a counter inside. After execution of a sub thread, count down and return;
CyclicBarrier: a ...
Posted by biocyberman on Mon, 24 Feb 2020 06:10:07 -0800
It is required to make a magnifying glass as shown in the figure, with mouse following, turning on and off when right clicking, including transition animation.
The general idea is to bind mouse events and dynamically modify the background position. The difficulty lies in that the ...
Posted by myharshdesigner on Tue, 18 Feb 2020 04:56:57 -0800
Regular expressions operate on strings
Function: search, replace and validate data
There are two ways to create regular expressions:
// Literal measure
// Constructor method
Common characters: alphanumeric characters blank;, @ (no special meaning symbol)
Two ways to match:
test, find and return true ...
Posted by Invincible on Sat, 15 Feb 2020 05:59:10 -0800
As for the bug of GZIPInputStream, this problem has not been solved in the latest version of jdk. Note when using gzip:
When using GZIPInputStream to read the gizp file, us ...
Posted by roomyz on Thu, 13 Feb 2020 06:58:13 -0800
Objective: to solve the problem of inaccurate software delay by using timer.Several methods to realize timing function:
1. Software timing: software timing does not take up hardware resources, but takes up CPU time, reducing CPU utilization.
2. Time base circuit timing: for example, 555 circuit.
3. Usin ...
Posted by rstrik on Tue, 11 Feb 2020 01:28:45 -0800
Posted by goatboy on Tue, 11 Feb 2020 00:36:09 -0800
1. rem Foundation
rem (root em) is a relative unit, similar to em. EM is the font size of the parent element, and the benchmark of rem is the font size of the html element.
For example, if the root element (html) is set to font size = 12px and the non root element is set to width:2rem, then ...
Posted by esconsult1 on Mon, 10 Feb 2020 04:18:18 -0800
Hierarchical architecture of Linux SCSI subsystem:
Low level: it represents the actual driver of the physical interface with SCSI, such as the driver developed by each manufacturer for its spe ...
Posted by networkguy on Sun, 09 Feb 2020 20:20:54 -0800
The project uses layui to make a simple book search page and share it.
Like friends give a little like!!!
1. Front page and JS
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
Posted by woobarb on Fri, 07 Feb 2020 07:02:38 -0800