编程时间:10小时左右
代码行数:约600行
博客园发表量:3篇
所学知识点:
1)<marquee>让文字滚动起来</marquee>
2)* 这东西叫“通配符”用来匹配页面上所有元素。
*{margin:0; padding:0;} 像 2L 所说,body ,ul, li ,p,
h1~
h6,dd,dt 等……都有默认的margin 或padding值的,加上这句就可以删除浏览器这些默认值,方面后面的设置。(注:不是没它不行,只是方便而已)
你加上面那句后页面乱,那是当然的,因为你没加时是基于有默认的margin或padding 进行设置的,去掉了默认值,就当然会乱了。
3)
substring() 方法返回字符串的子字符串。
http://www.runoob.com/java/java-string-substring.html
语法
public String substring(int beginIndex)
或
public String substring(int beginIndex, int endIndex)
参数
beginIndex -- 起始索引(包括), 索引从 0 开始。
endIndex -- 结束索引(不包括)。
返回值
子字符串。
实例
public class Test { public static void main(String args[]) { String Str = new String("
www.runoob.com"); System.out.print("返回值 :" ); System.out.println(Str.substring(4) ); System.out.print("返回值 :" ); System.out.println(Str.substring(4, 10) ); } }
以上程序执行结果为:
返回值 :runoob.com
返回值 :runoob
转载于:https://www.cnblogs.com/zzstdruan1707-4/p/10728449.html
相关资源:数据结构—成绩单生成器