css text justified
When making forms, we often encounter situations where the upper and lower fields are aligned, such as name, mobile number, and birthplace. So we're going to use the text align, text justify style.
Just set text align to justify directly. The situation of text justify is complicated. Some people may not be familiar with it. IE values are as fo ...
Posted by sdyates2001 on Thu, 31 Oct 2019 05:04:02 +0100
Multithreading basics review
Basic knowledge review of multithreading
1) difference between process and thread
Process:
After the program runs, a QQ, wechat, etc. is a process.
Threading:
A thread is the smallest unit in a process. To put it simply, a thread is a different execution path in a program.
Procedure:
QQ is a program, a program on hard disk.
2) dif ...
Posted by omidh on Wed, 30 Oct 2019 11:22:32 +0100
js event object event event delegation
Event | window.event (for IE)
div.onclick = function(event ){
var event = event || window.event;
}
Event source object the object that triggered the event
event.target Firefox only has this
Event.srcelement ie only this
Both of them have
Can be used for event delegation
Event delegation
Manage e ...
Posted by dyip on Mon, 28 Oct 2019 19:31:51 +0100
Outer margin merging or collapse of css
The first situation:
It is known that two div s with width and height of 100px and margin of 20px are arranged vertically, as shown in the following figure:
When setting the margin bottom: 40px of css1 or the margin top: 40px of css2, the phenomenon is as follows:
Conclusion:
Only when the vertica ...
Posted by tskweb on Mon, 28 Oct 2019 15:06:04 +0100
Review notes on basic Javascript
Introduction to Javascript Basics
First of all, we need to know the standards of web pages:
HTML is the structure of a web page
Css is the expression and beautification of web pages
Javascript is the dynamic structure of web page, that is, behavior.
This article briefly introduces1. Basic syntax of JS ...
Posted by wama_tech on Sun, 27 Oct 2019 10:39:33 +0100
Secondary encapsulation (update) of axios based on common business scenarios
Update the second encapsulation of axios according to the common business scenarios under vue project after one year
Function realization:1. Compatible with ie browser to avoid caching2. Reduce or update duplicate requests3. Interface domain name usage environment variable4. Global loading status5. Global error alerts that can be turned off6. G ...
Posted by phillips321 on Thu, 17 Oct 2019 00:56:47 +0200
Little knowledge: introduction to the usage of classList and compatibility with IE8
Preface
Question: how can I use native js instead of element.addClass/removeClass("") to add a class name to the current element?
Answer: you can use the classList in js. It has several callable methods > > > add, remove, toggle, contains, replace, item, among which add / remove can ...
Posted by jeppers on Tue, 15 Oct 2019 17:24:21 +0200
Cookie and Session of Django
Cookie
Get Cookie
request.COOKIES['key']
request.get_signed_cookie('key', default=RAISE_ERROR, salt='', max_age=None)
The parameters of get_signed_cookie method:
default: default value
Salt: Encrypted salt
max_age: Background control expiration time
Set Cookie
rep = HttpResponse(...)
rep = render(request, ...)
rep.set_cookie(key,value,...) ...
Posted by johanlundin88 on Mon, 07 Oct 2019 12:53:36 +0200
[JavaScript] js Basic Syntax - 2 (Arrays, Functions, Global Variables)
Article directory
1. js array
2. Functions of JS
3. Global and local variables of JS
1. js array
1.Definition:
(1)var arr = [1,2,3]; var arr = [1,"4",true];
(2)Using built-in objects Array
var arr1 = new Array(5);//Define an array with an array length of 5
arr1[0] = "1";
(3)Using built-in obje ...
Posted by k3Bobos on Fri, 04 Oct 2019 13:33:14 +0200
web Front-end Getting Started to Practice: Alignment of both ends of css text
When making forms, we often encounter the alignment of two fields, such as name, cell phone number and birthplace. So we're going to use the text-align, text-justify style.
Just set text-align to justify. The situation of text-justify is complicated. Some people may not be familiar with it. The values o ...
Posted by budz on Thu, 03 Oct 2019 02:48:19 +0200