📄 mymaster.js
字号:
//让对象相对屏幕居中
// SetCtrlToScrCenter(document.all.DetailsView1);
function SetCtrlToScrCenter(obj)
{
if(obj==null)
{
alert('要居中的对象为空!');
return;
}
//obj.style.Z-INDEX = "200";
//obj.style.POSITION = "absolute";
var iHeight,iWidth;
iWidth = 300;
iHeight = 400;
if(obj.style.height!='')
iHeight = obj.style.height;
if(obj.style.width!='')
iWidth = obj.style.width;
//alert(iWidth);
obj.style.top = (document.body.scrollHeight-iHeight)/2;
obj.style.left = (document.body.offsetWidth-iWidth)/2;
obj.style.DISPLAY = 'block';
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -