html - 倾斜/倾斜的表头

标签 html css

无法理解如何制作this trickthis与CSS。我的意思是标题和标志。这条线不直。它们是倾斜的/倾斜的边界。 能否请您举个例子或只是举例说明这是可行的?

enter image description here

enter image description here

最佳答案

看看https://jsfiddle.net/josedvq/3HG6d/

HTML

<div class="triangle-up-left"></div>

CSS

.triangle-up-left {
    width: 0;
    height: 0;
    padding-bottom: 10%;
    padding-left: 10%;
    overflow: hidden;
}
.triangle-up-left:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: -500px;
    border-bottom: 500px solid transparent;
    border-left: 500px solid #4679BD;
}

他们使用了一种技巧,您可以让一些边框透明以创建三 Angular 形。有关此技术的更多信息,请访问 How do CSS triangles work?

关于html - 倾斜/倾斜的表头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52159581/

相关文章:

html - 移动 Bootstrap 网格项

javascript - 选择输入年份降序排列

javascript - Jquery .animate() 仅在按 F11 或 F12 后受影响

javascript - jquery:切换一个div的 child

javascript - html5 使用 bezierCurveTo 绘制高斯函数

HTML - 常量标题/自动更新标题?

javascript - 如何为表格行设置动画

html - 当我的图片在 Bootstrap 列中的宽度为 100% 时,如何使用 css 放大图片?

html - CSS 列表计数器增加级别

javascript - 如何镜像文本选择?