css - 网站周围的圆 Angular 边框

标签 css border rounded-corners

我在整个网站周围都有边框而且效果很好,现在我怎样才能让它有圆 Angular ,我试过了:

border-radius: 25px

但它不起作用,这是正常的边框代码,但我需要它四舍五入:

.ct, .cb, .cr, .cl {
border-radius: 25px
background-color: #ffffff;
    position: fixed;
    z-index: 99999;
}
.ct {
border-radius: 25px
  top: 0;
  right: 0;
  left: 0;
  height: 20px;
}
.cr {
border-radius: 25px
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
}
.cb {
border-radius: 25px
  bottom: 0;
  right: 0;
  left: 0;
  height: 20px;
}
.cl {
border-radius: 25px
  top: 0;
  left: 0;
  bottom: 0;
  width: 20px;
}

提前致谢

最佳答案

不要使用 div 作为边框,只需使用 border: size type color;

https://jsfiddle.net/dcLbza26/

html {
  height: 100vh;
  border: 20px solid red;
  border-radius: 25px;
}

关于css - 网站周围的圆 Angular 边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44437857/

相关文章:

swift - 如何在 Swift 3 的 TableView Cell 中设置具有更高值 t 的右上角半径

css - 在 flex 盒内保持图像比例?

css - 使用 css reset 后应用填充

html - 表格<TD>右边框问题

c# - wpf 形式的所有内容的圆角

Android:Spinner 项目的圆角

html - meteor {{#markdown}}

html - 提醒时如何风格化需要输入框的边框

css - 可见性:隐藏 - 如何在 Firefox 中执行此操作?

python - matplotlib 条形图黑色 - 如何删除条形边框