如何在整个网站周围制作边框
How to make Border around whole website
如何在整个网站周围添加边框,示例如下:http://ksize.be/
而且我希望该边框在每个页面上都保持相同的静态,滚动时只有其中的内容会发生变化。
在此先感谢大家
我刚刚复制了示例站点中的代码:
.ct, .cb, .cr, .cl {
background-color: #e79d80;
position: fixed;
z-index: 99999;
}
.ct {
top: 0;
right: 0;
left: 0;
height: 12px;
}
.cr {
top: 0;
right: 0;
bottom: 0;
width: 12px;
}
.cb {
bottom: 0;
right: 0;
left: 0;
height: 12px;
}
.cl {
top: 0;
left: 0;
bottom: 0;
width: 12px;
}
<div class="ct"></div>
<div class="cr"></div>
<div class="cb"></div>
<div class="cl"></div>
如何在整个网站周围添加边框,示例如下:http://ksize.be/
而且我希望该边框在每个页面上都保持相同的静态,滚动时只有其中的内容会发生变化。
在此先感谢大家
我刚刚复制了示例站点中的代码:
.ct, .cb, .cr, .cl {
background-color: #e79d80;
position: fixed;
z-index: 99999;
}
.ct {
top: 0;
right: 0;
left: 0;
height: 12px;
}
.cr {
top: 0;
right: 0;
bottom: 0;
width: 12px;
}
.cb {
bottom: 0;
right: 0;
left: 0;
height: 12px;
}
.cl {
top: 0;
left: 0;
bottom: 0;
width: 12px;
}
<div class="ct"></div>
<div class="cr"></div>
<div class="cb"></div>
<div class="cl"></div>