09 2020 档案

摘要:一 前言 在CSS 中,如果我们在块级容器上设置了属性: overflow:scroll /* x y 方向都会*/ 或者 overflow-x:scroll /*只是x方向*/ 或者 overflow-y:scroll /*只是y方向*/ 当块级内容区域超出块级元素范围的时候,就会以滚动条的形式展 阅读全文
posted @ 2020-09-29 07:08 武卡卡 阅读(1363) 评论(0) 推荐(0) 编辑
摘要:body::-webkit-scrollbar{ display: none; } 阅读全文
posted @ 2020-09-29 06:30 武卡卡 阅读(921) 评论(0) 推荐(1) 编辑
摘要:文章来源 : https://www.cnblogs.com/Zting00/p/7497629.html 踩过些坑,得到的结论,不一定精确 1、 body的滚动条,刷新页面的时候不会回到顶部。其他dom节点会 2、 body只能通过onscroll函数表达式的方法来绑定滚动事件 (其中,IE不能监 阅读全文
posted @ 2020-09-29 06:23 武卡卡 阅读(1533) 评论(0) 推荐(1) 编辑
摘要:一个标准的类需要拥有下面 4个 组成部分: 1. 所有的成员变量都要使用 private 关键字进行修饰 2. 为每一个成员变量编写 set、get 方法 3. 创建一个无参数的构造方法 4. 创建一个有参数的构造方法 这样标准的类也称为 Java Bean 。 JavaBean 是一种JAVA语言 阅读全文
posted @ 2020-09-21 23:15 武卡卡 阅读(698) 评论(0) 推荐(1) 编辑
摘要:package class_object; /** * 局部变量和成员变量的区别 * * 1. 定义位置 * * 2. 作用域 * * 3. 默认值 => 局部变量没有默认值 * * 4. 内存位置 => 局部变量位于 【 栈 】 中 。 成员变量位于 【 堆 】 中 * * 5. 生命周期 * * 阅读全文
posted @ 2020-09-21 16:05 武卡卡 阅读(112) 评论(0) 推荐(0) 编辑
摘要:1. 创建 Phone 类 package class_object; public class Phone { String brand; String color; double price; void call(String who){ System.out.println("call "+w 阅读全文
posted @ 2020-09-21 15:04 武卡卡 阅读(129) 评论(0) 推荐(0) 编辑
摘要:1. 创建 Phone 类 package class_object; public class Phone { String brand; String color; double price; void call(String who){ System.out.println("call "+w 阅读全文
posted @ 2020-09-21 15:01 武卡卡 阅读(113) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> 阅读全文
posted @ 2020-09-20 22:15 武卡卡 阅读(348) 评论(0) 推荐(0) 编辑
摘要:package array; import java.util.Arrays; /** * 降序 */ public class Reverse { public static void main(String[] args) { // TODO Auto-generated method stub 阅读全文
posted @ 2020-09-17 17:26 武卡卡 阅读(828) 评论(0) 推荐(0) 编辑
摘要:通过Array类的静态 sort() 方法可实现对数组排序,sort() 方法提供了许多种重载形式,可对任意类型数组进行升序排序。 然而,Array类中没有类似 js 的 reverse 反序输出方法 。 只得先sort升序 , 再反序输出 , 上代码 : import java.util.Arra 阅读全文
posted @ 2020-09-16 16:48 武卡卡 阅读(1225) 评论(0) 推荐(0) 编辑
摘要:public class Bubble3 { public static void main(String[] args) { int[] arr; arr = new int[]{2,3,6,1}; Bubble3 Bu3 = new Bubble3(); Bu3.jiaohuan(arr); } 阅读全文
posted @ 2020-09-16 09:27 武卡卡 阅读(182) 评论(0) 推荐(0) 编辑
摘要:主要是利用静态变量存储 public class Bubble2 { static int minNumber; public static void main(String[] args) { int[] arr; arr = new int[]{20,3,2,5,666,33,1999,22}; 阅读全文
posted @ 2020-09-15 00:03 武卡卡 阅读(809) 评论(0) 推荐(0) 编辑
摘要:// 递归求数组最小值 public class Bubble { // 定义存储最小值的变量 static int min; public static void main(String[] args) { int[] arr; arr = new int[]{10,200,66,1,0}; mi 阅读全文
posted @ 2020-09-14 23:23 武卡卡 阅读(736) 评论(0) 推荐(0) 编辑
摘要:1. 思路:发现菱形的规律 ,定义三个变量,左边距和右边距,中间的边距 。 具体规律观察上图 。 2.上代码: //输出空心菱形 public class ForToLingXing { public static void main(String[] args) { byte lingWidth 阅读全文
posted @ 2020-09-12 12:27 武卡卡 阅读(592) 评论(0) 推荐(0) 编辑
摘要:上效果图: 上代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <titl 阅读全文
posted @ 2020-09-04 19:09 武卡卡 阅读(475) 评论(0) 推荐(0) 编辑
摘要:使用js处理问题的时候,我们可能会经常使用到setInterval()来进行定时任务或者轮询的操作,那么如何让setInterval停止和重新启动呢,下边的代码就可以实现的呦,如果有更好的方法,不吝赐教。 // 定义定时任务 function func(){console.log("hello")} 阅读全文
posted @ 2020-09-04 17:08 武卡卡 阅读(5444) 评论(0) 推荐(1) 编辑
摘要:原因 : 元素 display : flex ; 解决方法 : display : block; 阅读全文
posted @ 2020-09-04 15:56 武卡卡 阅读(4694) 评论(0) 推荐(2) 编辑
摘要:1,可以阻止事件冒泡 2,可以阻止浏览器默认操作 阅读全文
posted @ 2020-09-03 08:06 武卡卡 阅读(147) 评论(0) 推荐(0) 编辑
摘要:scrollHeight: 获取对象的滚动高度。 scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离 scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离 scrollWidth:获取对象的滚动宽度 offsetHeight:获取对象相对于 阅读全文
posted @ 2020-09-03 06:26 武卡卡 阅读(347) 评论(0) 推荐(0) 编辑
摘要:一,首先介绍下 js Array对象 中的 splice 方法 。 ( splice在英文中是剪接的意思 ) 1,定义和用法 splice() 方法用于插入、删除或替换数组的元素。 注意:这种方法会改变原始数组!。 2,语法 array.splice(index,howmany,item1,.... 阅读全文
posted @ 2020-09-01 21:54 武卡卡 阅读(16630) 评论(0) 推荐(4) 编辑

喜欢请打赏

扫描二维码打赏

支付宝打赏

点击右上角即可分享
微信分享提示