九九乘法表
2016-07-12 08:21
411 查看
<!DOCTYPE html>
<html>
<head>
<meta
charset="UTF-8">
<title></title>
</head>
<body>
<style
type="text/css">
div{
width:
60px;
height:
20px;
text-align: center;
line-height:
20px;
display:
inline-block;
margin:
4px;
border:
1px solid deeppink;
background-color: deeppink;
color: white;
font-weight:
400;
}
</style>
<script
type="text/javascript">
//九九乘法表
for
(var i = 1; i
<= 9; i++) {
for(var
j = 1; j
< i + 1; j++){
document.write("<div>"
+ j + "*"
+ i + "="
+ (i * j)
+"</div>");
}
document.write("<br />");
}
</script>
</body>
</html>
<html>
<head>
<meta
charset="UTF-8">
<title></title>
</head>
<body>
<style
type="text/css">
div{
width:
60px;
height:
20px;
text-align: center;
line-height:
20px;
display:
inline-block;
margin:
4px;
border:
1px solid deeppink;
background-color: deeppink;
color: white;
font-weight:
400;
}
</style>
<script
type="text/javascript">
//九九乘法表
for
(var i = 1; i
<= 9; i++) {
for(var
j = 1; j
< i + 1; j++){
document.write("<div>"
+ j + "*"
+ i + "="
+ (i * j)
+"</div>");
}
document.write("<br />");
}
</script>
</body>
</html>
相关文章推荐
- Extjs4.0 最新最全视频教程
- Javascript中toFixed方法的改进
- 5个常见可用性错误和解决方案
- js数组实现图片轮播
- js可突破windows弹退效果代码
- JSP脚本漏洞面面观
- 使用BAT一句话命令实现快速合并JS、CSS
- js显示当前星期的起止日期的脚本
- 爆炸式的JS圆形浮动菜单特效代码
- js select常用操作控制代码
- JS实现不使用图片仿Windows右键菜单效果代码
- 从jsp发送动态图像
- 原生js结合html5制作小飞龙的简易跳球
- js 页面模块自由拖动实例
- js实现小鱼吐泡泡在页面游动特效
- js 提交和设置表单的值
- PHP VBS JS 函数 对照表
- node.js抓取并分析网页内容有无特殊内容的js文件
- PHP+JS实现大规模数据提交的方法
- awk 九九乘法表 shell实现代码