04 2017 档案

摘要:过渡: 阅读全文
posted @ 2017-04-30 15:15 xiongjiawei 阅读(179) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 10 11 12 1 div{ 2 width: 300px; 3 height: 200px; 4 border:solid; 5 } 6 #div1{ 7 /*background-image: linear-gradient... 阅读全文
posted @ 2017-04-30 11:00 xiongjiawei 阅读(194) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 中国 10 11 12 13 让屏幕超过一屏产生滚动条。 14 15 1 div{ 2 width: 100px; 3 height: 100px; 4 /*background: red url(img/鱼2.jpg... 阅读全文
posted @ 2017-04-24 22:41 xiongjiawei 阅读(99) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 10 11 1 div{ 2 width: 100px; 3 height: 100px; 4 background: rgba(255,0,0,0.2); 5 /*border:2px solid green;*//*类似padding * ... 阅读全文
posted @ 2017-04-24 21:06 xiongjiawei 阅读(129) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 10 我的表格 11 单元格单元格单元格单元格单元格单元格单元格单元格 12 单元格单元格 13 单元格单元格单元格 14 15 16 无序列表项1 17 无序列表项2 18 ... 阅读全文
posted @ 2017-04-24 19:25 xiongjiawei 阅读(1007) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 文字 20 21 22 哈哈 23 24 25 ... 阅读全文
posted @ 2017-04-23 19:35 xiongjiawei 阅读(258) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 中国 10 黄山 11 北京 12 上海 13 外边距合并上 14 外边距合并下 15 16 愿上苍保佑你的善良和真诚,愿我们常相聚,相遇是最美好的事。感谢上苍让我们在人生之中相遇,无论是擦肩而过,还是相扶相持,都十分珍贵,永远珍... 阅读全文
posted @ 2017-04-23 17:18 xiongjiawei 阅读(179) 评论(0) 推荐(0)
摘要:浏览器内核 私有前缀 浏览器 webkit -webkit- chrome、safari、安卓、ios trident -ms- IE gecko -moz- firefox presto -o- opera 阅读全文
posted @ 2017-04-23 15:58 xiongjiawei 阅读(817) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 text-align文本水平对齐方式 10 This is a test sentence. 汉字 之间 无 空格 会 当作 一个 单词。 11 abcdqwert yuiopasdfg h... 阅读全文
posted @ 2017-04-23 15:49 xiongjiawei 阅读(1826) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 34 35 36 37 未设置字体 38 font-size规定文本的字体尺寸 39 font-size规定文本的字体尺寸 40 font-size规定文本的字体尺寸 41 font-size规定文本的字体尺寸 42... 阅读全文
posted @ 2017-04-23 14:09 xiongjiawei 阅读(234) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 --> 7 16 17 19 20 21 22 23 24 25 26 27 阅读全文
posted @ 2017-04-23 12:53 xiongjiawei 阅读(526) 评论(0) 推荐(0)
摘要:伪元素选择器: 结构伪类选择器: UI伪类选择器、其他伪类选择器: 选择器优先级: 一般情况:行内样式>ID>类>元素; 范围更小,描述更精准的优先级高; 后设置的优先级高。 阅读全文
posted @ 2017-04-22 21:51 xiongjiawei 阅读(183) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 13 14 15 h1标题 16 h2标题 17 18 HTML5 19 h3标签内容继承div元素样式,但类似布局样式不能继承,例外边框 20 21 22 1 @charset="UTF-8"; ... 阅读全文
posted @ 2017-04-22 21:29 xiongjiawei 阅读(1903) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 9 10 11 12 当前浏览器不支持canvas 13 14 210 211 阅读全文
posted @ 2017-04-22 18:29 xiongjiawei 阅读(183) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 当前浏览器不支持此音频 16 17 18 当前浏览器不支持此视频 19 当前浏览器不支持此视频 20 21 ... 阅读全文
posted @ 2017-04-22 14:52 xiongjiawei 阅读(309) 评论(0) 推荐(0)
摘要:一个实例: 阅读全文
posted @ 2017-04-22 13:10 xiongjiawei 阅读(241) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 用户名 10 密码 11 12 13 14 15 16 17 18 19 邮箱 20 网址 21... 阅读全文
posted @ 2017-04-18 00:54 xiongjiawei 阅读(739) 评论(0) 推荐(0)
摘要:1 2 3 4 5 header、footer 6 13 14 15 头部 16 左右 17 底部 18 19 1 2 3 4 5 article 6 7 8 9 10 文章一标题 11 文... 阅读全文
posted @ 2017-04-17 19:14 xiongjiawei 阅读(604) 评论(0) 推荐(0)
摘要:<!DOCTYPE html>表示HTML5文档申明,不区别大小写,通常这么写。 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">表示HTML4 阅读全文
posted @ 2017-04-16 13:33 xiongjiawei 阅读(272) 评论(0) 推荐(0)
摘要:1 package 网络编程; 2 3 import java.io.BufferedReader; 4 import java.io.BufferedWriter; 5 import java.io.FileOutputStream; 6 import java.io.IOException; 7 阅读全文
posted @ 2017-04-15 15:42 xiongjiawei 阅读(392) 评论(0) 推荐(0)
摘要:1 package com.tn.mysqlconnection; 2 3 import java.sql.Connection; 4 import java.sql.DriverManager; 5 import java.sql.PreparedStatement; 6 import java. 阅读全文
posted @ 2017-04-15 13:39 xiongjiawei 阅读(280) 评论(0) 推荐(0)
摘要:1 package 网络编程; 2 3 import java.io.IOException; 4 import java.io.PrintStream; 5 import java.net.ServerSocket; 6 import java.net.Socket; 7 8 public cla 阅读全文
posted @ 2017-04-09 20:15 xiongjiawei 阅读(272) 评论(0) 推荐(0)
摘要:1 package 对象序列化; 2 3 import java.io.Serializable; 4 5 @SuppressWarnings("serial") 6 class A implements Serializable{ 7 8 } 9 public class TestSerializ 阅读全文
posted @ 2017-04-09 19:10 xiongjiawei 阅读(421) 评论(0) 推荐(0)
摘要:多用Scanner少用InputStream 多用BufferedReader少用Reader 多用PrintStream少用OutputStream 多用PrintWriter少用Writer 1 package Scanner; 2 3 import java.io.File; 4 import 阅读全文
posted @ 2017-04-09 18:57 xiongjiawei 阅读(560) 评论(0) 推荐(0)
摘要:BufferedReader最重要,因为有个方法public String readLine() 1 package System输入输出; 2 3 import java.io.BufferedReader; 4 import java.io.IOException; 5 import java. 阅读全文
posted @ 2017-04-09 17:40 xiongjiawei 阅读(253) 评论(0) 推荐(0)
摘要:1 package System输入输出; 2 3 import java.io.ByteArrayOutputStream; 4 import java.io.File; 5 import java.io.FileOutputStream; 6 import java.io.IOException 阅读全文
posted @ 2017-04-09 17:04 xiongjiawei 阅读(466) 评论(0) 推荐(0)
摘要:1 package 打印流; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 8 class MyPr 阅读全文
posted @ 2017-04-09 15:39 xiongjiawei 阅读(322) 评论(0) 推荐(0)
摘要:1 package 内存流; 2 3 import java.io.ByteArrayInputStream; 4 import java.io.ByteArrayOutputStream; 5 import java.io.IOException; 6 import java.io.InputSt 阅读全文
posted @ 2017-04-09 14:15 xiongjiawei 阅读(1076) 评论(0) 推荐(0)
摘要:1 package 字符编码; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 import java 阅读全文
posted @ 2017-04-09 13:38 xiongjiawei 阅读(2281) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileInputStream; 5 import java.io.FileOutputStream; 6 import java.io.IOException; 7 import j 阅读全文
posted @ 2017-04-09 12:13 xiongjiawei 阅读(182) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 import java 阅读全文
posted @ 2017-04-09 10:51 xiongjiawei 阅读(225) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileReader; 5 import java.io.IOException; 6 import java.io.Reader; 7 8 public class TestRead 阅读全文
posted @ 2017-04-08 23:58 xiongjiawei 阅读(1242) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileWriter; 5 import java.io.IOException; 6 import java.io.Writer; 7 8 public class TestWrit 阅读全文
posted @ 2017-04-08 23:36 xiongjiawei 阅读(963) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileInputStream; 5 import java.io.IOException; 6 import java.io.InputStream; 7 8 public clas 阅读全文
posted @ 2017-04-08 23:17 xiongjiawei 阅读(545) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 8 public cl 阅读全文
posted @ 2017-04-08 22:05 xiongjiawei 阅读(257) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.IOException; 5 6 public class TestFile { 7 public static void main(String[] args) throws IOE 阅读全文
posted @ 2017-04-08 19:36 xiongjiawei 阅读(256) 评论(0) 推荐(0)
摘要:1 package 国际化; 2 3 import java.util.ResourceBundle; 4 5 public class TestResource { 6 public static void main(String[] args) { 7 ResourceBundle rb=Res 阅读全文
posted @ 2017-04-08 17:46 xiongjiawei 阅读(528) 评论(0) 推荐(0)
摘要:实例化对象的3种方式:new、clone、反射 阅读全文
posted @ 2017-04-08 16:33 xiongjiawei 阅读(374) 评论(0) 推荐(0)
摘要:1 package 反射; 2 interface Product{ 3 public void produce(); 4 } 5 class socks implements Product{ 6 @Override 7 public void produce() { 8 System.out.p 阅读全文
posted @ 2017-04-08 16:05 xiongjiawei 阅读(227) 评论(0) 推荐(0)
摘要:1 package 反射; 2 3 public class Test反射 { 4 public static void main(String[] args) { 5 System.out.println(Runtime.getRuntime().getClass());//class java. 阅读全文
posted @ 2017-04-08 15:01 xiongjiawei 阅读(184) 评论(0) 推荐(0)
摘要:1 package 正则; 2 3 import java.util.regex.Matcher; 4 import java.util.regex.Pattern; 5 6 public class Test_regex { 7 public static void main(String[] a 阅读全文
posted @ 2017-04-08 14:47 xiongjiawei 阅读(737) 评论(0) 推荐(0)
摘要:1 package 正则; 2 3 public class TestIsNum { 4 public static void main(String[] args) { 5 String s1="abc"; 6 String s2="98765234567800987654321123456789 阅读全文
posted @ 2017-04-08 12:58 xiongjiawei 阅读(2786) 评论(0) 推荐(0)
摘要:1 package 对象比较排序; 2 3 import java.util.Arrays; 4 5 class A implements Comparable<A>{ 6 private String name; 7 private int age; 8 public A(String name, 阅读全文
posted @ 2017-04-07 23:58 xiongjiawei 阅读(560) 评论(0) 推荐(0)
摘要:1 package Arrays类; 2 3 import java.util.Arrays; 4 5 public class TestArrays { 6 public static void main(String[] args) { 7 int[] a={1,9,3,5,7,8,2,6,0, 阅读全文
posted @ 2017-04-07 23:19 xiongjiawei 阅读(390) 评论(0) 推荐(0)
摘要:1 package 日期日历类; 2 3 import java.text.ParseException; 4 import java.text.SimpleDateFormat; 5 import java.util.Date; 6 7 public class TestDate { 8 publ 阅读全文
posted @ 2017-04-07 22:25 xiongjiawei 阅读(756) 评论(0) 推荐(0)
摘要:1 public class TestDate { 2 public static void main(String[] args) { 3 System.out.println(new java.util.Date()); 4 } 5 } 运行结果:Fri Apr 07 21:56:24 CST 阅读全文
posted @ 2017-04-07 21:58 xiongjiawei 阅读(1863) 评论(0) 推荐(0)
摘要:1 package 彩票中奖码生成器; 2 3 import java.util.Random; 4 5 public class TestRandom { 6 public static void main(String[] args) { 7 Random random=new Random() 阅读全文
posted @ 2017-04-07 21:00 xiongjiawei 阅读(2057) 评论(0) 推荐(0)
摘要:1 package math; 2 3 public class TestMath_round { 4 public static void main(String[] args) { 5 System.out.println(Math.round(0.5));//1 6 System.out.pr 阅读全文
posted @ 2017-04-07 20:21 xiongjiawei 阅读(449) 评论(0) 推荐(0)
摘要:1 package 对象克隆; 2 class A implements Cloneable{//要具备clone()功能必须要实现Cloneable接口,此接口里无方法,只起标识作用。 3 private String value; 4 public A(String value){ 5 this 阅读全文
posted @ 2017-04-07 20:03 xiongjiawei 阅读(1551) 评论(0) 推荐(0)
摘要:1 package 对象被回收前执行的操作; 2 class A{ 3 @Override 4 protected void finalize() throws Throwable { 5 System.out.println("在对象变成垃圾被gc收回前执行的操作。"); 6 } 7 } 8 pu 阅读全文
posted @ 2017-04-07 19:28 xiongjiawei 阅读(1162) 评论(0) 推荐(0)
摘要:1 public class Test_currentTimeMillis { 2 public static void main(String[] args) { 3 long start=System.currentTimeMillis(); 4 for(int i=0;i<Integer.MA 阅读全文
posted @ 2017-04-07 19:19 xiongjiawei 阅读(848) 评论(0) 推荐(0)
摘要:1 package 多线程; 2 class Producer implements Runnable{ 3 private Data data; 4 public Producer(Data data){ 5 this.data=data; 6 } 7 @Override 8 public syn 阅读全文
posted @ 2017-04-06 21:18 xiongjiawei 阅读(247) 评论(0) 推荐(0)
摘要:1 package 多线程; 2 class A{ 3 public synchronized void say(B b){ 4 System.out.println("A说:你把你的本给我,我把我的笔给你!"); 5 b.get(); 6 } 7 public synchronized void 阅读全文
posted @ 2017-04-06 20:06 xiongjiawei 阅读(151) 评论(0) 推荐(0)