前天本来想去买一本ASP.net方面的书,可是看到asp.net使用主要的语言是vb or javascript , 同时也感觉到学习javascript 的重要性,也就买了这本书,是张孝祥编的,内容应该不错.
主要分四部分:1.html 2.CSS 3.javascript 4.正则表达式,DOM编程其它脚本技术
Html 部分比较基础,也比较全.我基本都掌握了(当然细节和具体属性还需要不断地翻书查找),不熟悉的地方:Frameset/div/span
Frameset:
主文档网页:mainPage.htm
<html>
<head>
<title>MainPage</title>
</head>
<frameset cols="25%, *">
<frame src="menu.htm" scrolling="no" name="left">
<frame src ="page1.htm" scrolling="auto" name="main">
<noframes>
<body>
<p> sorry , your bowser doesn’t support frame!</p>
</noframes>
</frameset>
</html>
Menu.htm
<html>
<head>
<title>doc</title>
</head>
<body>
<p><font color="#0000ff">doc</font></p>
<p><a href="page1.htm" target="main">to first page</a></p>
<p><a href="page2.htm" target="main">to second page</a></p>
</body>
</html>
page1.htm/page2.htm
<html>
<head>The first page</head>
<body>
<p align="center"><font color="#8000ff"> This is the rist page</font></p>
</body>
</html>
CSS
不要看到英文字母就怕,没有什么难的.
CSS:cascading style sheets 层叠样式表
CSS的几种设置方式:
内联
嵌入
外部
输入
样式规则的选择器:
HTML selector
Class selector
ID selector