1. In the introduction of style sheets documents <style> tag to use, and on <head>
2. Syntax: stylesheet (
[Attribute: attribute value]; [attribute: attribute value];
)
For example, <style type="text/css">
<! --
. classstyle1 (font-family: Font; font-size: 12pt;)
->
3. Attribute value is not surrounded by quotation marks up.
CLASS and ID type of style sheet
1. For the class specified in the syntax of the style class name before the (.) Dots, and then write in the style definition in brackets.
For example:. Classstyle1 (color: blue;)
2.ID style is designated by dots instead of the #.
<style type="TEXT/CSS">
<! --
. classstyle1 (
font-family: Font;
font-size: 12pt;
)
. classstyle2 (
font-family: Chinese language in italics;
font-size: 15pt;
font-style: italic;
)
# idstyle (
font-family: Lishu;
font-size: 19pt;
color: blue;
)
->
</ style>
classstyle1 effect of a <p> paragraphs </ p>.
idstyle effect <p> paragraph 2 </ p>
<p> in a row can use <span> the use of style tags <span>. classstyle2 effect </ span> </ p>
classstyle1 three paragraphs <div> effect </ div
javascript
1. Open the google site: window.open ( "http://www.google.com")
2. In the html document display hello: document.write ( "hello");
3. Pop-up window: alert ( "sdfd");
4. Mandatory type conversion function
For example: parseInt ( "6.12") = 6
parseFloat ( "6.12") = 6.12
eval ( "1 +1") = 2, eval ( "1 <2") = true -------------------- evel function will be forced into a string expression type and return results
5.typeof: query the current value type: typeof ( "test" +3) = "string", typeof (null) = "object"
6.11 in the built-in object: array, string, date, math, boolean, number, function, global, error, regexp, object
7. String objects: Automatic creation and manual creation.
var sr = "hello world"; spent on discarded
var str = new String ( "hello world"); the overall effective
8. Characters, letters for length 1
9. Three types of dialog box: alert (str), confirm (str), prompt (str, value)







