📄 borderdiv.js
字号:
function BorderedDiv(content,images,border)
{
var container=document.createElement("div");
container.style.width=parseInt(border.left)+parseInt(content.style.width)+parseInt(border.right);
//container.style.border="solid 1px green";
//container.style.position="absolute";
var height=[border.top,content.style.height,border.bottom];
var width=[border.left,content.style.width,border.right];
var float=["left","left","left"];
for(var x=0;x<3;x++)
{
var line=document.createElement("div");
container.appendChild(line);
//line.style.border="solid 1px green";
line.style.height=height[x];
for(var y=0;y<3;y++)
{
if(x!=1||y!=1)
var curr=new ImageBox(images[x][y],height[x],width[y]);
else
curr=content;
if(navigator.appName==("Microsoft Internet Explorer"))curr.style.styleFloat=float[y];
else curr.style.cssFloat="left";
curr.style.overflow="hidden";
line.appendChild(curr);
}
}
return container;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -