摘要: <style type="text/css"> *{ margin: 10px; padding: 5px; box-sizing: border-box; } span{ /*width: 200px; height: 100px;*/ display: inline-block; text-al 阅读全文
posted @ 2020-04-13 16:24 阿向向 阅读(192) 评论(0) 推荐(0) 编辑
摘要: <body> <div style="width: 300px; height: 100px; border: dotted red 5px; border-radius: 20px; box-sizing: border-box; font:20px/30px '方正舒体'; color:gree 阅读全文
posted @ 2020-04-13 16:23 阿向向 阅读(869) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> /* 三资自幂数 从100~999 每一个的 三次幂 的 和 这个数相等 123 1*1*1+2*2*2+3*3*3 */ // 判断一个数字是不是三次自幂数 var num=153 var a=parseInt(num/100) va 阅读全文
posted @ 2020-04-13 16:22 阿向向 阅读(210) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> document.writeln('打印出1000~2000年中所有的闰年,并以每行四个数的形式输出<br />') //做一个计数器 var count=1 for (var i=1000;i<=2000;i++) { if(i%4 阅读全文
posted @ 2020-04-13 16:21 阿向向 阅读(601) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> document.writeln(' 输入年份、月份,显示当月的天数'+'<br>') var year= parseInt(prompt('请输入一个年份')) var month= parseInt(prompt('请输入一个月份' 阅读全文
posted @ 2020-04-13 15:58 阿向向 阅读(389) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> *{padding: 0;margin: 0;} #box{ width: 200px;height: 200px; 阅读全文
posted @ 2020-04-13 15:56 阿向向 阅读(135) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> /* 1~100以内3的倍数 */ document.writeln('1~100以内3的倍数: '+'<br />') for (var i=1;i<=100;i++) {// 判断i能被3整除 if (i%3 0) { docume 阅读全文
posted @ 2020-04-13 15:51 阿向向 阅读(783) 评论(0) 推荐(0) 编辑