摘要: 2.2字体样式 /* font-family:字体 font-weight:字体粗细 font-size:字体大小 color:字体颜色 */ <style> body{ font-family: 楷体; color: red; } .p1{ font-weight: bold; } h1{ fon 阅读全文
posted @ 2024-06-06 18:13 fightownself 阅读(38) 评论(0) 推荐(0)
摘要: 1.选择器 1.1基本选择器 1、标签选择器:选择一类标签 <head> <meta charset="UTF-8"> <title>Title</title> <style> h1{ background: #2b5612; } </style></head><body><h1>java</h1> 阅读全文
posted @ 2024-06-04 17:58 fightownself 阅读(63) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-03-07 18:19 fightownself 阅读(6) 评论(0) 推荐(0)
摘要: CREATE DATABASE `shop` CHARACTER SET utf8 COLLATE utf8_general_ciCREATE TABLE `account`( `id` INT(3) NOT NULL AUTO_INCREMENT, `name` VARCHAR(10) NOT N 阅读全文
posted @ 2024-03-06 17:57 fightownself 阅读(72) 评论(0) 推荐(0)
摘要: -- 修改表名 ALTER TABLE 旧表名 RENAME AS 新表名ALTER TABLE teacher RENAME AS teacher1-- 增加表的字段 alter table 表名 add 字段名 字段属性ALTER TABLE teacher1 ADD age INT(12)-- 阅读全文
posted @ 2024-02-20 17:26 fightownself 阅读(36) 评论(0) 推荐(0)
摘要: 数据库的字段属性 Unsinged: 无符号的整数 不能声明为负数 zerofill: 0填充的 不足的位数,使用0来填充 int(3) ,5 005 自增: 通常理解为自增,自动在上一条记录的基础上加+1(默认) 通常用来设计唯一的主键 ~~~index,必须是整数类型 可以自定义设计主键自增的起 阅读全文
posted @ 2024-02-02 17:00 fightownself 阅读(14) 评论(0) 推荐(0)
摘要: //自定义异常类public class MyException extends Exception{ //传递数字》10 private int detail;​ public MyException(int a) { this.detail = a; }​ @Override public St 阅读全文
posted @ 2024-01-24 09:49 fightownself 阅读(20) 评论(0) 推荐(0)
摘要: public class Demo01 { public static void main(String[] args) { int a =1; int b =0; //ctrl+alt+T //假设要捕获多个异常:从小到大 try {//监控区域 new Demo01().a(); } catch 阅读全文
posted @ 2024-01-23 11:58 fightownself 阅读(33) 评论(0) 推荐(0)
摘要: public class Outer { private int id =10; public void out(){ System.out.println("这是外部类的方法"); } public class Inner{ public void in() { System.out.printl 阅读全文
posted @ 2024-01-23 10:50 fightownself 阅读(42) 评论(0) 推荐(0)
摘要: 接口的本质就是契约 作用: 约束 定义一些方法,让不同的人实现 public abstract public static final 接口不能实例化,接口中没有构造方法 implements可以实现多个接口 必须重写接口中的方法 //定义的关键字 interface ,接口都需要有实现类publi 阅读全文
posted @ 2024-01-23 10:09 fightownself 阅读(16) 评论(0) 推荐(0)