HTML: <div></div> CSS: *{ padding: 0; margin: 0;}div{ width: 100px; height: 100px; background: #f00; cursor: pointer; position: absolute; left: 0; top ...
分类:
Web程序 时间:
2019-11-23 10:07:10
阅读次数:
124
Java数组深入 内存中的数组 前边提到:数组是一种引用类型, 数组引用变量只是一个引用 ,当它指向有效内存的时候才可以通过数组变量来访问数组元素,也就是说数组变量和数组元素在内存中是分开放的。 可以这么理解,一个人名就是一个引用变量,通过这个人名找到这个人,获取他的所有信息,就是通过引用变量访问其 ...
分类:
编程语言 时间:
2019-11-22 23:53:50
阅读次数:
144
List的add方法与addAll方法 区别 add add是将传入的参数作为当前List中的一个Item存储,即使你传入一个List也只会另当前的List增加1个元素 addAll addAll是传入一个List,将此List中的所有元素加入到当前List中,也就是当前List会增加的元素个数为传 ...
分类:
其他好文 时间:
2019-11-20 15:27:16
阅读次数:
59
::-webkit-scrollbar{width:8px;height:10px;}::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:6px;cursor:pointer;}::-webkit-scrollbar-track{background-color:#ddd;border-radius:6px
分类:
其他好文 时间:
2019-11-17 12:59:59
阅读次数:
85
CSS用户界面样式 1. 鼠标样式currsor ~~~ li{ cursor:pointer; } ~~~ 设置或检索在对象上移动鼠标指针采用何种系统预定义的光标形状 | 属性值 | 描述 | | | | | default | 默认 | | pointer | 小手 | | move | 移动 ...
分类:
Web程序 时间:
2019-11-16 21:58:09
阅读次数:
91
#ifndef _INTARRAY_H_#define _INTARRAY_H_class IntArray{private: int m_length; int* m_pointer; IntArray(int len); IntArray(const IntArray& obj); bool c ...
分类:
其他好文 时间:
2019-11-16 12:49:36
阅读次数:
64
1 #ifndef _INTARRAY_H_ 2 #define _INTARRAY_H_ 3 class IntArray{ 4 private: 5 int m_length; 6 int* m_pointer; 7 IntArray(int len); 8 IntArray(const Int ...
分类:
其他好文 时间:
2019-11-16 12:28:52
阅读次数:
54
1、静态方法(类名直接调用) ① static String pathSeparator 路径分隔符(字符串) static char pathSeparatorChar 路径分隔符(字符) windows:分号 ; linux:冒号 ② static String separator 名称分隔符( ...
分类:
其他好文 时间:
2019-11-13 00:42:45
阅读次数:
83
It is recommended to use 'slice' over 'Array'. An array variable denotes the entire array; it is not a pointer to the first array element (as would be ...
分类:
其他好文 时间:
2019-11-12 16:11:35
阅读次数:
85
在使用一个js插件时,不想让用户点击input输入和触发那个下拉框,用css的方式有什么方法?readonly和disabled都要写到标签上,但input都是这个插件生成的,有什么好的方法解决吗? 最简单的一个css方法是: 加样式:pointer-events: none; ...
分类:
Web程序 时间:
2019-11-12 14:51:53
阅读次数:
134