在一个声明中设置所有背景属性: background: #00FF00 url(bgimage.gif) no-repeat fixed top; 属性: background-color规定要使用的背景颜色。例:background-color:red; background-position规定 ...
分类:
Web程序 时间:
2020-07-29 14:34:05
阅读次数:
379
1. Using inline to replace #define when there are paramters 2. Using unsigned int only for bit-operations 3. Using fixed-width type int e.g. uint8_t, ...
分类:
其他好文 时间:
2020-07-27 15:42:42
阅读次数:
67
html:<a v-on:mouseover="changeActive($event)" v-on:mouseout="removeActive($event)" @click="backTOP" style="width: 39px;height: 39px;position: fixed;bo ...
分类:
其他好文 时间:
2020-07-27 13:49:30
阅读次数:
79
1、功能需求:由于项目业务需要一个图片预览的功能,又不想引入太多组件依赖,所以决定自己编写一套,实现了图片放大缩小、旋转、查看下一张或上一张图片功能,如图1.0截图所示。 2、外部资源:这里的icon图标采用的是 iconfont 里面的图标,自己可以自行寻找自己喜欢的图标代替,或者使用默认的图标, ...
分类:
其他好文 时间:
2020-07-26 01:01:26
阅读次数:
202
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> *{ margin:0; padding:0; } .test{ position:fixed; left:50px; top:50px; wid ...
分类:
其他好文 时间:
2020-07-24 22:05:51
阅读次数:
74
问题:在使用element-ui的table组件时,给表格的某些列设置了fixed属性,让列可以固定,不随着滚动条滚动移动,结果发现设置后,拖动横向的滚动条的前半部分无法拖动。后来发现原因是设置了fixed属性的列(左侧的div)把滚动条覆盖了。 解决办法: .el-table__fixed { h ...
分类:
其他好文 时间:
2020-07-24 15:56:38
阅读次数:
205
https://www.luogu.com.cn/problem/P1223 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n; 4 struct t{ //定义结构体存放等待时间和排队编号 5 int w, no; 6 }; 7 t ...
分类:
其他好文 时间:
2020-07-22 20:56:08
阅读次数:
73
盒子模型 1 绝大多数标签都可以看作盒子,可以设置宽高或设置内容;在CSS中,"box model"这一术语是用来设计和布局时使用。 CSS盒模型本质上是一个盒子,封装周围的HTML元素,它包括:边距,边框,填充,和实际内容。 盒模型允许我们在其它元素和周围元素边框之间的空间放置元素。 下面的图片说 ...
分类:
Web程序 时间:
2020-07-19 18:06:47
阅读次数:
100
<head> <style> .adModal{ position:fixed; background: black; top: 0; right: 0; bottom: 0; left: 0; z-index: 998; opacity: 0.4; } .tdModal{ position:fix ...
分类:
其他好文 时间:
2020-07-18 19:50:38
阅读次数:
67
遇到一个需求,给PDF增加一个印章,使用iText7可以很方便地实现这个需求,通过Nuget添加iText7的引用。 1 string sourceFileName = txtFileName.Text; 2 string destFileName = Path.GetDirectoryName(s ...
分类:
其他好文 时间:
2020-07-18 11:35:28
阅读次数:
138