摘要: font-size:字体大小;chrome最小12px;(谷歌默认的最小值) font-weight:字体粗细;bold加粗;bolder更粗;lighter更细;400等同于normal;700相当于bold; font-style:斜体;normal正常;italic斜体;oblique倾斜(这 阅读全文
posted @ 2020-10-14 09:29 soda001 阅读(316) 评论(0) 推荐(0)
摘要: /* 文本不换行 */ white-space: nowrap; /* 超出部分隐藏 */ overflow: hidden; /* 超出部分显示省略号 */ text-overflow: ellipsis; *三个属性一起用 效果如下 网页设计的时候居中显示的部分要加 margin:0 auto 阅读全文
posted @ 2020-10-14 09:14 soda001 阅读(115) 评论(0) 推荐(0)
摘要: <a href="当点击超链接时要跳转到的链接地址" target="_blank"在新窗口也打开网页 title="当鼠标放在网页上显示的名字"></a> 1.地址:相对路径 绝对路径 网络路径(网络路径必须https或者http开头) 2.跳转方式: _target 在新的窗口页打开网页 _se 阅读全文
posted @ 2020-10-09 14:20 soda001 阅读(626) 评论(0) 推荐(0)
摘要: 1.表单标签: <form >表单元素</form> <form action="当点提交按钮时提交给服务器的路径" method="提交方式" 提交方式分1 get 2post></form> 2.表单元素: <input type="表单类型" name="" value="" placehol 阅读全文
posted @ 2020-10-09 14:19 soda001 阅读(289) 评论(0) 推荐(0)
摘要: 表格标签 <td>是默认形式 <th>是默认字体加粗 cellspacing属性规定的是单元边沿与单元内容之间的空间 cellpadding 是指字体与单元格的内边距 align="center"表格整体居中<td>中的valign 属性是控制字体在单元格最下端 <table border="1"  阅读全文
posted @ 2020-09-30 09:24 soda001 阅读(228) 评论(0) 推荐(0)
摘要: 求 100-1000之间的水仙花数for(int i=100;i<=1000;i++){ int a=i%100; int b=i/10%10; int c=i%10; if(a*a*a+b*b*b+c*c*c==i){ System.out.println(i); } 打印一个三角形 for(in 阅读全文
posted @ 2020-09-19 08:08 soda001 阅读(117) 评论(0) 推荐(0)
摘要: 定义变量 数据类型=值;java数据类型两种:1.基本数据类型 2.引用数据类型 int a=1; double b=2.4; float e=4.8f; char c='你'; boolean d=false; 变量可以定义时不赋值,但是不赋值不能使用int a; a=1; System.out. 阅读全文
posted @ 2020-09-18 08:14 soda001 阅读(100) 评论(0) 推荐(0)
摘要: 默认值约束 default 非空约束 not null 唯一约束 unique 主键 primary key 自增长 auto_increment 外键 CONSTRAINT 外键名字 FOREIGN KEY(字段) REFERENCES 主表(字段) 注意: 1)被约束的表称为副表,约束别人的表称 阅读全文
posted @ 2020-09-15 16:12 soda001 阅读(193) 评论(0) 推荐(0)
摘要: 鼠标悬浮放大效果 html <div class="imgBox"> <img src="http://www.jq22.com/img/cs/500x500-1.png" alt=""></div> css .imgBox { width:200px; height:200px; overflow 阅读全文
posted @ 2020-09-10 20:38 soda001 阅读(85) 评论(0) 推荐(0)
摘要: 插入数据 insert into 表名 values() 插入部分数据 insert into 表名(字段1,字段2) values(属性1,属性2) 修改数据 updae 表名 set字段属性 where 条件 待条件删除数据 delete from 表名 where 条件 -- 清空表DELET 阅读全文
posted @ 2020-09-10 20:23 soda001 阅读(114) 评论(0) 推荐(0)