This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.结构性定义 | |
文件类型 <html></html> (放在档案的开头与结尾) | |
文件主题 <title></title> (必须放在「文头」区块内) | |
文头 <head></head> (描述性资料,像是「主题」) | |
文体 <body></body> (文件本体) | |
(由浏览器控制的显示风格) | |
标题 <h?></h?> (从1到6,有六层选择) | |
标题的对齐 <h? align=left|center|right></h?> | |
区分 <div></div> | |
区分的对齐 <div align=left|right|center|justify></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git从开始到高级图片详细介绍 http://www.heiniuhaha.com/assets/themes/twitter/pic/git-api.png | |
 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>面包屑导航</title> | |
</head> | |
<body> | |
<input type="checkbox" name="ck" value="子目录A">子目录A | |
<input type="checkbox" name="ck" value="子目录B">子目录B | |
<input type="checkbox" name="ck" value="子目录C">子目录C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>单选按钮实例</title> | |
<script type="text/javascript"> | |
function getResult(){ | |
for (var i = 0; i < document.myform.RadioButtons.length; i++) { | |
if (document.myform.RadioButtons[i].checked) { | |
alert("您是" + document.myform.RadioButtons[i].value + "血型"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>按钮四类 text submit resert img</title> | |
</head> | |
<body> | |
<center><h1>按钮对象示例</h1></center> | |
<form name="myform" action="" method="get" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>单击遍历单选按钮</title> | |
<script type="text/javascript"> | |
function change(){ | |
var fm = document.forms[0]; | |
if (fm.color[0].checked) { | |
fm.color[0].checked = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Insert title here</title> | |
<script type="text/javascript"> | |
/* | |
添加选项: | |
someSelect.options[length]=new option(value,text) | |
删除选项: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
文本域 值都在value中 | |
text | |
password | |
button | |
textare 在<textarea>value</textare> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>slice()</title> | |
<script type="text/javascript"> | |
/*slice() 方法可提取字符串的某个部分,并以新的字符串返回被提取的部分。 | |
可为负 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>内置的文本对象的select方法</title> | |
</head> | |
<body> | |
<input type="text" o value="123" /><br /> | |
<input type="text" onfocus="this.select()" value="123" /><br /> |