css - 带切割三 Angular 形的矩形

标签 css

如何在 css 中制作类似的东西?

https://www.dropbox.com/s/6ol23la6ey373gt/example.png

最佳答案

你可以在 .up 中添加一个 border-image 来查看上面图像的完整克隆效果!

Fiddle

div.wrapper {
    background:#d89043;
    width:400px;
    height:300px;
    position:relative;
}
div.up {
  width:0px; 
  height:0px; 
  border-left:50px solid transparent;  /* left arrow slant */
  border-right:50px solid transparent; /* right arrow slant */
  border-bottom:50px solid #fff; /* bottom, add background color here */
  font-size:0px;
  line-height:0px;
  position:absolute;
  bottom:0;
  margin-left:40%;
}​

关于css - 带切割三 Angular 形的矩形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14127753/

相关文章:

javascript - 设置可调整大小图像的父级 div 高度

css - 带子菜单的 Bootstrap 导航栏

javascript - 如何使用填充滚动到元素的顶部?

css - CSS继承问题

html - 透明gif不透明?

php - CSS div 将内容扩展到更多行

javascript - 鼠标左键单击与 JavaScript 中的右键单击例程发生冲突

javascript - DropDown 放置在其他元素 css 的顶部

css - 如何将 CSS 样式应用于 Drupal 搜索表单提交按钮?

javascript - 如何向图像的某些部分添加多个链接