JS自适应高度,其实就是设置iframe的高度,使其等于内嵌网页的高度,从而看不出来滚动条和嵌套痕迹。对于用户体验和网站美观起着重要作用。如果内容是固定的,那么我们可以通过CSS来给它直接定义一个高度,同样可以实现上面的需求。当内容是未知或者是变化的时候。这个时候又有几种情况了。 iframe内容未 ...
分类:
其他好文 时间:
2020-01-17 21:05:34
阅读次数:
73
先来成品图: package 老八汉堡; import java.awt.*; import javax.swing.*; public class Window extends JPanel { JFrame frame; static JButton but[][] = new JButton[ ...
分类:
其他好文 时间:
2020-01-17 20:55:26
阅读次数:
295
最近由于工作需要,在登录界面实现enter键快捷登录 只需要在body后加一行代码即可: <body onkeydown="if(event.keyCode==13){document.getElementById('btn-login').click();}"> 注意: btn-login为登录的 ...
分类:
Web程序 时间:
2020-01-17 11:35:15
阅读次数:
86
先了解什么是off-cpu On-CPU: where threads are spending time running on-CPU. Off-CPU: where time is spent waiting while blocked on I/O, locks, timers, paging ...
分类:
其他好文 时间:
2020-01-17 09:30:41
阅读次数:
121
三维迷宫 bfs+剪枝 #include <bits/stdc++.h> using namespace std; const int MAXN=55; int g[MAXN][MAXN][MAXN]; int a,b,c,n; int dx[6]={0,0,1,-1,0,0}; int dy[6] ...
分类:
其他好文 时间:
2020-01-16 23:55:37
阅读次数:
154
classMyEvent<T>extendsCustomEvent<T>{publicstaticreadonlyCMD:string="EVENT_NAME";publicconstructor($type:string,$data:T){super($type,{detail:$data,bubbles:true,cancelable:true,composed:tru
分类:
其他好文 时间:
2020-01-16 23:52:38
阅读次数:
240
aa(event){//选择的excel文件 var file=event.target.files[0]; console.log(file); var reader = new FileReader(); reader.readAsBinaryString(file); reader.onloa ...
分类:
Web程序 时间:
2020-01-16 22:22:26
阅读次数:
403
Series 和 DataFrame Pandas库基本运用 Series 包含一维索引的一组数据 DataFrame 包含 index 和 column 两个轴 Panel 一种三维数据容器 import pandas as pd import numpy as np from pandas im ...
分类:
其他好文 时间:
2020-01-16 22:13:47
阅读次数:
66
通过重新定义oncontextmenu和onselectstart事件,禁止鼠标右键和选择
分类:
其他好文 时间:
2020-01-16 17:26:24
阅读次数:
72
最近要做一个vue项目的监控,来实时监听正式环境的异常,并且快速响应进行bug修改,其实vue项目报错主要从下面三个方法进行错误收集 1. window.addEventListener('unhandledrejection', event => { event.promise.catch((e) ...
分类:
其他好文 时间:
2020-01-16 14:42:11
阅读次数:
82