摘要: 随机输入一个三位数,求这个三位数的最大数。 function work4(){ var num = parseInt(prompt("输入一个三位数","")); var n1 = parseInt(num / 100); var n2 = parseInt(num / 10 % 10); var 阅读全文
posted @ 2017-03-31 23:47 wylbgp 阅读(157) 评论(0) 推荐(0)
摘要: function click99(){ var str = ""; for(var i = 1; i < 10; i++){ for(var n = 1; n <= i; n++){ str += i + "*" + n + "=" + i * n + " "; } str += "\n"; } c 阅读全文
posted @ 2017-03-31 23:44 wylbgp 阅读(110) 评论(0) 推荐(0)
摘要: 有一个分数序列:2/1,3/2,5/3,8/5,13/8,21/13..求出这个数列前20项之和。function text4(){ var denominator; var molecule; var i= 0,k= 1,str=""; var str1="",str2="",sum=0; for 阅读全文
posted @ 2017-03-31 23:42 wylbgp 阅读(885) 评论(0) 推荐(0)
摘要: html: 阅读全文
posted @ 2017-03-31 23:39 wylbgp 阅读(360) 评论(0) 推荐(0)
摘要: 方法一: h1{ width:154px; height:30px; background:url("........") overflow:hidden; } h1>a{ display:block; line-height:200px; } 方法二: h2{ width:154px; heigh 阅读全文
posted @ 2017-03-14 12:48 wylbgp 阅读(167) 评论(0) 推荐(0)
摘要: @charset "utf-8";/*通配符*/*{ /*外边距 内边距*/ /*margin: 0;*/ /*padding: 0;*/}/*标记选择器 元素选择器 作用到整个html所有同类元素*/p{ /*英文单词*/ /*background-color: yellow;*/ /*16进制* 阅读全文
posted @ 2017-03-14 12:35 wylbgp 阅读(100) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>table</title> <style> table{ border-collapse: collapse; } tr{ border: 1px solid 阅读全文
posted @ 2017-03-06 10:12 wylbgp 阅读(151) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>锚点</title> <style> .box1,.box2{ height: 600px; border:1px solid; } </style> </he 阅读全文
posted @ 2017-03-06 10:11 wylbgp 阅读(85) 评论(0) 推荐(0)