如何在整个网站周围制作边框

最后

如何在整个站点周围添加边框,例如: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>

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章