摘要: <!DOCTYPE html><html> <head> <title>test</title> <style type="text/css"> * { margin: 0; padding: 0; } .header { background-color: gray; position: abso 阅读全文
posted @ 2017-05-19 15:59 红叶11 阅读(227) 评论(0) 推荐(0) 编辑
摘要: //body 阅读全文
posted @ 2017-03-14 23:34 红叶11 阅读(189) 评论(0) 推荐(0) 编辑
摘要: /*! normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css *//** * 1. Change the default font family in all browsers (opinionated). * 2 阅读全文
posted @ 2017-03-14 23:29 红叶11 阅读(302) 评论(0) 推荐(0) 编辑
摘要: CSS部分: 阅读全文
posted @ 2017-02-05 11:20 红叶11 阅读(180) 评论(0) 推荐(0) 编辑
摘要: /* 1、必须有@ index("@") 1【没找到】 2、必须有. 3、@必须在.之前 4、@前必须有字符 5、.后边必须有字符 6、@和.之间必须有字符 7、.在@后边出现次数不能超过2次*/var email = prompt("请输入邮箱", "232@qq.com");if (email. 阅读全文
posted @ 2017-02-05 11:17 红叶11 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-01-18 00:16 红叶11 阅读(640) 评论(0) 推荐(0) 编辑
摘要: <!-- *****// ***// *// ***// *****--><script type="application/javascript"> var num=1*prompt("输入行数"); for(var a=num;a>0;a--) { for(var b=0;b<2*a+1;b++ 阅读全文
posted @ 2017-01-18 00:15 红叶11 阅读(498) 评论(0) 推荐(0) 编辑
摘要: var num=1*prompt("输入行数");//显示的金字塔行数for(var i=0;i<num;i++){ for(var j=0;j<2*i+1;j++) { document.write("*"); } document.write("<br>");} 阅读全文
posted @ 2017-01-18 00:11 红叶11 阅读(8835) 评论(0) 推荐(0) 编辑
摘要: var s="jhdoiweesdds";var n=(s.split('s')).length-1;document.write(n); 阅读全文
posted @ 2017-01-18 00:08 红叶11 阅读(361) 评论(0) 推荐(0) 编辑
摘要: var email=prompt("输入邮箱格式");var str=email.lastIndexOf(".");var str2=email.substring(str);//.com/.cnvar str3=email.indexOf("@");var str4=email.substring 阅读全文
posted @ 2017-01-17 23:58 红叶11 阅读(2494) 评论(0) 推荐(0) 编辑