Interlacing as foster, there is no mistake, but there is no way, I need to insist, through the blog I can review the basic knowledge of recent days, while talking about their own voice, next in a review of several common HTML links:
1. Hyperlink tag (a tag):
<a herf= "hyperlink address" target= "_blank" > hyperlink text or it can be a picture (also with a hyperlink)</a> _blank represents a new window open link
Two other functions of the 2.a Label: make anchor links and Anchor point labels
Anchor Point Label: first step: <a name= "assigning a value" ></a>
Anchor link: Step two: <a herf= "#name的那个值" ></a> <a herf= "#" > Back top </a> back to top function #必须写
3. Image Link:
width,height Settings High width, alt is the picture can not be loaded, display text, help search engine Search.
For example: use picture hyperlink: <a herf= "https://www.duba.com/" ></img></a>
4. Production of Forms:
Basic elements: rows <tr></tr> cells:<td></td> table:<table></table>
Table Rules: the contents must be in the cell, the cell must be in the row, the row must be placed in the Table. sets the row of the cell, when the column is high, and affects the corresponding rows and Columns.
Some basic modifications to the Table: border: border;
Cellpadding: the distance between the content and the cell border.
cellspacing: spacing between cells
Width: wide, expressed in pixels or percentages. Common 960px
bgcolor: background Color background: background image can also be used in line, cell
Align: Alignment
Some basic modifiers of a cell/row: align: horizontal alignment of the contents of a row Left,right,center
Valign: the vertical alignment of the contents of a line Top,bottom,middle
Height: Set high,
Width: Setting width
Merge Cells: colspan= "n" merges cells of the same row (number of columns n= Across)
rowspan= "n" merges the same column of cells (n= spans the number of Rows)
note:
1. Table header <th> title <th> Auto Center inside cell, Bold
2. <thead></thead> no matter where it is written, it will appear at the top of the Table.
3.<tfoot></tfoot> No matter where it is written, it will appear at the bottom of the Table.
for Loop Statement :
1.for Standard mode for (initial condition; cyclic condition; State Change) {
Loop body
}
Initial conditions: defines the value of a variable;
Cyclic condition: the condition of the variable;
State change: Change the value of the variable;
2. The process of looping:
3. Issues that can be solved: exhaustive and iterative
A few examples:
1. numbers related to 7
var x= '
For (var i=1; i<=100; I++) {
If (i%7==0 | | i%10==7 | | (i>70 && I<80)) {
X+=i + ""
} (| | expressed or,&&)
2.
3. Badminton Racket 15 yuan, ball 3 yuan, Water 2 Yuan. $200 each at least one, how much could it be
Badminton racket up to buy 13 balls up to buy 66 water up to buy 100
var count=0;
For (var Yumq=1;15*yumq<=200;yumq++) {
For (var Qiu=1;3*qiu<=200;qiu++) {
For (var Shuig=1;2*shuig<=200;shuig++) {
If (15*yumq+3*qiu+2*shuig==200) {
count++;
document.write (' Badminton ' + yumq + ' + ' + ' ball ' + Qiu + ' + ' water ' +shuig + ' <br> ');
}
}
}
}alert (count)
3. Multiplication Formula table
I=1 i=2 i=3 i=4
J=1 1*1
j=2 1*2 2*2
J=3 1*3 2*3 3*3
j=4 1*4 2*4 3*4 4*4
For (var J=1;j<=9;j++) {
var xiaoguo= ';
For (var I=1;i<=j;i++) {
Xiaoguo +=i+ ' * ' + ' j ' + ';
} document.write (xiaoguo+ ' <br/> ')
}
document.write (xiaoguo+ ' <br/> ') wrote that the second for loop body is not the same as the outside effect, written outside is correct, inside the time, each execution step is Output.
Write the effect in the inside
var xiaoguo= "; writes to the first for loop body inside and at the beginning assigns the value also not the Same. Here's how it works:
Because the order of execution Changed.
Some bricks in the Java language!