看到一道面试题,用flex布局九宫格,决定自己实现一下 ###基础版 .father { display: flex; /*必须给宽高把盒子撑起来,然后调整width可看是否要正方形*/ width: 300px; height: 300px; flex-direction: column; } . ...
分类:
其他好文 时间:
2020-07-29 21:45:05
阅读次数:
57
/*最外层的盒子*/.container{ width: 640px; height: 640px; /*盒子居中*/ margin: 100px auto; /*相对定位*/ position: relative;}/*两个按钮*/.btn{ width: 100%; height: 100%; ...
分类:
Web程序 时间:
2020-07-29 21:40:58
阅读次数:
78
1、居中弹出 $k.confirm({ content:'居中弹出', onClosed:function(args){ if (args.closeTrigger == 'btn-0') { $k.alert({content:'您点了"确定"按钮'}); } else{ $k.alert({co ...
分类:
其他好文 时间:
2020-07-29 15:26:04
阅读次数:
82
1、居中弹出 $k.msg({content:'居中弹出'}); 查看效果 2、左上角弹出 $k.msg({ content:'左上角弹出', style:{left:0,top:0} }); 查看效果 3、右下角弹出 $k.msg({ content:'右上角弹出', style:{left:'r ...
分类:
其他好文 时间:
2020-07-29 15:23:27
阅读次数:
104
css样式 /*修改滚动条样式*/ div::-webkit-scrollbar{ width:10px; height:10px; /**/ } div::-webkit-scrollbar-track{ background: rgb(239, 239, 239); border-radius: ...
分类:
Web程序 时间:
2020-07-29 14:48:18
阅读次数:
78
Docker-Compose 介绍 有时候运行一个镜像需要大量的参数,可以通过Docker-Compose编写这些参数.而且Docker-Compose可以版主我们批量管理容器,这些信息值需要通过一个docker-compose.yml文件去维护即可 下载并安装Docker-Compose 下载Do ...
分类:
其他好文 时间:
2020-07-29 14:47:52
阅读次数:
69
方法一: 给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引入方式-行内式 通过 style这个标签属性,将css键值对直接写入标签内 1 <p style="width: 100px;height: 100px;background: red;"></p> 2 <!--注释:这段代码描述的是一个宽高为100px,背景为红色的容器--> css引入方 ...
分类:
Web程序 时间:
2020-07-29 12:39:02
阅读次数:
103
题面 #include <bits/stdc++.h> using namespace std; template<typename temp> void read(temp &x){ x = 0; temp f = 1; char ch; while(!isdigit(ch = getchar() ...
分类:
其他好文 时间:
2020-07-28 22:35:46
阅读次数:
61