Java的位运算符详解实例——与(&)、非(~)、或(|)、异或(^)、左移(<<)、右移(>>) /******************************************** * java运算符 */ public class BasicOperating { /** * “&”与运 ...
分类:
编程语言 时间:
2020-08-06 09:32:35
阅读次数:
74
## 外边距塌陷 ### 产生原因 - 相邻块元素垂直外边距合并 - 兄弟块元素,同时设置不同的 `margin-top` 值,两个的 `margin-top` 最后展示的都是最大的 `margin-top` 的效果。 - html ```html ``` - style ```css .broth... ...
分类:
其他好文 时间:
2020-08-04 09:44:29
阅读次数:
74
1、padding-bottom实现等比例缩放 原理:1、父元素设置定位为相对定位(position: relative)2、子元素设置定位为绝对定位(position: absolute)3、父元素padding-bottom值为百分比时以父元素为参考,正方形时同父元素一样的百分比。4、子元素的绝 ...
分类:
其他好文 时间:
2020-07-31 18:01:58
阅读次数:
89
1、单行输入 $k.prompt({ content:'<span>请输入姓名:</span><input type="text" class="kui-window-input" style="width:200px;height:32px;" /> ', onClosed:function(ar ...
分类:
其他好文 时间:
2020-07-30 18:21:06
阅读次数:
107
<!doctype html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> * { margin: 0; padding: 0; } #outer { width: 500px; mar ...
分类:
其他好文 时间:
2020-07-29 17:44:45
阅读次数:
66
flex 布局 Flex :Flexible box 弹性布局,用来为盒装模型提供最大的灵活性。任何的容器都可以指定为Flex布局 .box{ diaplay:flex; ] 行内元素可以使用flex布局 .box{ display:inline-flex } 传统的布局时基于盒装模型 https: ...
分类:
其他好文 时间:
2020-07-29 14:33:40
阅读次数:
63
方法一: 给input添加 -webkit-appearance: none; 隐藏默认样式。然后添加自己的样式就好了。 例如: .radioBox input{ -webkit-appearance: none; width: 20px; height: 20px; padding: 0; bac ...
分类:
其他好文 时间:
2020-07-29 14:32:08
阅读次数:
88
function createStyle(){ return"*{padding:0;margin:0;border:0}.loading{width:640px;height:1024px;margin:0 auto}.loadImg{width:640px;height:1024px;anima ...
分类:
Web程序 时间:
2020-07-29 12:39:59
阅读次数:
206
介绍一下标准的 CSS 的盒子模型?低版本 IE 的盒子模型有什么不同的? (1)有两种盒子模型:IE盒模型(border-box)、W3C标准盒模型(content-box) (2)盒模型:分为内容(content)、填充(padding)、边界(margin)、边框(border)四个部分 IE ...
分类:
Web程序 时间:
2020-07-27 13:40:50
阅读次数:
147
1. 文件复制命令 cp 将源文件名移动至目标文件夹 cp [options] source_file destination_folder 2. 移动文件命令 mv 将源文件名改为目标文件名 mv [options] source_file new_file 将文件移动到目标目录 mv [opti ...
分类:
系统相关 时间:
2020-07-26 19:41:23
阅读次数:
170