First, the Code short Way Induction "1. Box Model Code shorthand: margin (margin), padding (padding) and border (border) settings The margins in the left and right four directions are set in a clockwise direction: top left 1, The left value is the same as the following code: margin:10px 10px 10px 10px, abbreviated as: Margin:10px;2, if the top and bottom values are the same, left and right values are the same, as in the following code: margin:10px 20p
The so-called Windows System directory shorthand environment variable is a relatively simple abbreviation for some common and fixed Windows directory paths, making it easier to enter or locate.
Windows system is installed by default in the computer C disk in the Windows directory, but this is not fixed, if your system is not installed in this directory, then the program to locate your system directory, you need to use the directory
checkout--check out, is our common command. Often used to switch branches, here is another use of git checkout.
2, Git checkout. Title
Action: Cancels all previous uncommitted modifications under the current directory. That is, we can use this command to cancel the previous modification before we change the code, but without a commit.
3, Git checkout a/abc
Explanation: The a/abc here refers to the directory structure. The meaning of this command is to cancel all changes to the ABC file in the A
The CSS specification allows you to create styles using abbreviated syntax, called shorthand CSS. Shorthand CSS allows you to specify the values of multiple properties with one property tag. For example, you can use the Font property to set the Font-style, Font-variant, Font-weight, Font-size, Line-height, and font-family properties in one line of syntax.
A key issue to note when using
The following code:1 Public class Age2 {3 4 Private intAgenum;5 6 Public intAgenum {7 Get{ 8 return This. Agenum;9 }Ten One Set{ A This. Agenum =value; - } - } the - Public intGetagenum () { - returnAgenum; - } + - Public voidSetagenum (intAge ) { + This. Agenum =Age ; A } at -}In main, do the following:1 New Age (); 2
We can specify grid columns, rows, and areas in one property using the the grid-template shorthand. { display: grid; height: 100vh; grid-gap: 10px; grid-template-areas: "Nav-1 nav-2 nav-3" "main main nav-3"; Grid-template-columns: 2fr auto 1fr; grid-template-rows: [Nav-start] 1fr [nav-end Main-start] 5FR
Transferred from: http://blog.bingo929.com/10-css-shorthand-tips.htmlObjective:CSS shorthand refers to the declaration of multiple lines of CSS properties into a line, also known as CSS Code optimization. The biggest benefit of CSS shorthand is the ability to significantly reduce the size of CSS files, in fact there are many other benefits. A bloated and cluttere
This article comes from years of experience in JavaScript coding techniques that are suitable for all developers who are programming with JavaScript.The purpose of this article is to help you become more proficient in the use of JavaScript language for development work.This article will be divided into two parts: primary and Advanced, respectively.Beginner's article1, trinocular operatorThe following is a good example of a complete if statement, abbreviated to a single line of code.const x = 20;
now, why add an OR?[PHP] mysql_connect ($host,$user,$pwddie ('Mysql error!'); [/php]If the connection fails, the front is false, the back die will run!Let's look at the following example:[PHP] $var = ";! $var Echo "It's empty!" ";! $var Print "It's empty!" "; [/php]which can be executed successfully?You know why?Here is the difference between echo and print:The difference between Echo and printThe functions of ECHO and print are basically the same in PHP, but there are subtle differences betwee
1. Weakly typed languages2. Variable $x3. Scope: Global,local,static,parameter.Global: In the function, refer to the world variable, before you call global. All variables are stored in a named $globals[index]. Global $x = = $GLOBALS [' x ']Static: Local variables in the function do not want to be destroyed after the execution of the function, with static. This will preserve the last value when the function is called again the next time.4. Array: $arr =array (x,x,x,x); Var_dump () Array (' a ' =
,What are the consequences of such a way?It changes the contents of the two pointers together, but cannot change the other pointer itself, does it feel incomprehensible?It doesn't matter that P is assigned according to the left of the previous parent node, assuming that the previous parent node is called FWell, that'sp=f->left;At this time p and F->left are nullptr,Until this time, there's no problem.Then we kept to change the contents of P,This time, yes, we changed the contents of the two poin
on Oss.jfrog.org "also sends a request, not a few minutes, can be used, upgrade, unlike the first submission, very fast. Immediately you can update the reference version number on GitHub, instantly mood Shuangshuang.V. Some of the pits that have been trampled1)Lint found errors in the projectThe Lint check is turned on by default, Lint checks for syntax errors in the project and cannot continue if it is not passed. Just add the following code to the Module's build.gradle:Android { lintoption
bold 12px Arial,verdana;} 2. Background background-color: #999999;//element background color background-image:url ( "Path/bgfile.gif"); Set background image background-repeat:repeat-x | repeat-y | repeat | no-repeat;//Set Repeat background-attachment:fixed | Scroll Sets the fixed way of the background picture background-position:x axis coordinates, y coordinate [top,bottom,center,left,right,20px,10%]; Sets the position of the upper-left corner of the background, in which the coordinate
1. Start the container and map the host to the container portDocker Run-p 127.0.0.1:20001:22-ti Centos/bin/bash2, Daemon way to start the containerDocker run -d-p 127.0.0.1:5000:22-ti centos/bin/bashdocker run -ti-p 0.0.0.0:7600:9600-p 0.0.0.0:7603:9603-t I Configserver2.lhm/bin/bash3. Connect to the background containerDocker Attach eb93ec3a3143ae732cedf573538e9117eb9897c4f93816c6b9821dbc7549f50c4. View the process in which the container is runningDocker Top 261ea009ae265. View the container
1.fontThis shorthand property allows you to set multiple properties of a font in a declaration.The following properties can be set sequentially:
Font-style
Font-variant
Font-weight
Font-size
Line-height
Font-family
For example:{ font: italic bold 16px 1 Sans-serif;}Font size and line height can also be written together. The middle is separated by a slash.The above attributes can also be written as:{ font: italic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.