99乘法表
2016-08-25 21:41
281 查看
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
table{
width: 1000px;
border-collapse: collapse;
background-color: gray;
border: 1px solid black;
/*text-align: left;*/
text-indent: 5px;
font-family: "宋体";
}
td{
border: 1px solid black;
}
a:link{
color: black;
}
a:visited{
color: black;
}
a:hover{
color: cyan;
}
a:active{
color: blue;
}
a{
text-decoration: none;
}
</style>
<script type="text/javascript" >
/*打印乘法表*/
document.write("99乘法表(鼠标放上有效果):"+"<br />"+"<br />");
document.write("<table>");
for(var i=1;i<=9;i++){
document.write("<tr>");
for(var j=1;j<=i;j++){
document.write("<td ><a href='#' title='"+i+" * "+j+" = "+i*j+ " '>")/*title*/
document.write(i+" * "+j+" = "+i*j);
document.write("</a></td>");
}
document.write("</tr>");
}
document.write("</table>");
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
table{
width: 1000px;
border-collapse: collapse;
background-color: gray;
border: 1px solid black;
/*text-align: left;*/
text-indent: 5px;
font-family: "宋体";
}
td{
border: 1px solid black;
}
a:link{
color: black;
}
a:visited{
color: black;
}
a:hover{
color: cyan;
}
a:active{
color: blue;
}
a{
text-decoration: none;
}
</style>
<script type="text/javascript" >
/*打印乘法表*/
document.write("99乘法表(鼠标放上有效果):"+"<br />"+"<br />");
document.write("<table>");
for(var i=1;i<=9;i++){
document.write("<tr>");
for(var j=1;j<=i;j++){
document.write("<td ><a href='#' title='"+i+" * "+j+" = "+i*j+ " '>")/*title*/
document.write(i+" * "+j+" = "+i*j);
document.write("</a></td>");
}
document.write("</tr>");
}
document.write("</table>");
</script>
</head>
<body>
</body>
</html>
相关文章推荐
- java实现心型、99乘法demo
- java打印99乘法表
- 进制转换,打印99乘法表
- 99乘法表
- [菜鸟学php] php版简单99乘法表-for循环
- java for循环写99乘法表
- VBS 打印99乘法表
- 99乘法表
- <Java>利用for循环在控制台输出99乘法表的探索
- 99乘法表
- shell: 打印99乘法表
- JAVA 99乘法表实例
- 99乘法表 (输入一个数,以该数为行数输出乘法表)
- 99乘法表隔行变色
- 练习: C#---函数(100以内7有关的数、99乘法表、100以内奇数和、硬币组合)
- c 打印 99乘法表
- 在Linux系统下如何用shell编写99乘法表啊?
- c语言(99乘法表)
- JavaScript--练习1--99乘法表
- [菜鸟学php] php版自定义函数实现99乘法表