相关疑难解决方法(0)

在CSS3上有边框的波形(或形状?)

我需要用CSS3 实现波形,我试图用CSS3 Shapes实现,但是我没有达到预期的结果.

* {
  margin: 0;
  padding: 0;
}
body {
  background: #007FC1;
}
.container,
.panel {
  border-bottom: 4px solid #B4CAD8;
}
.container {
  background-color: #fff;
}
.container > .text {
  padding: 0.5em;
}
.panel {
  position: relative;
  float: right;
  width: 200px;
  height: 40px;
  margin-top: -4px;
  background-color: #fff;
  line-height: 42px;
  text-align: center;
}
.panel:before {
  content: '';
  position: absolute;
  left: -44px;
  width: 0;
  height: 0;
  border-top: 44px solid #B4CAD8;
  border-left: 44px solid transparent;
}
Run Code Online (Sandbox Code Playgroud)
<div class="container">
  <div …
Run Code Online (Sandbox Code Playgroud)

css svg css3 css-shapes

12
推荐指数
4
解决办法
4731
查看次数

标签 统计

css ×1

css-shapes ×1

css3 ×1

svg ×1