css - 如何通过css将一侧划分为2d?
解决方案
试试这个:),不是你想要的确切的css,但希望这会有所帮助。检查此链接以获取输出。>> http://prntscr.com/lijc08
.hvr-curl-top-right {
display: inline-block;
vertical-align: middle;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px transparent;
position: relative;
}
.hvr-curl-top-right:before {
width: 20px;
height: 20px;
pointer-events: none;
position: absolute;
content: '';
height: 0;
width: 0;
top: 0;
right: -2px;
background: transparent;
// background: linear-gradient(225deg, #fff 45%, #aaa 50%, #ccc 56%, #fff 80%);
background: -webkit-linear-gradient(225deg,transparent 45%,#ffde72 50%,#ffde72 56%,#ffde72 80%);
background: linear-gradient(225deg,transparent 45%,#ffde72 50%,#ffde72 56%,#ffde72 80%);
box-shadow: -1px 1px 1px rgba(0, 0, 0, .4);
-webkit-transition-property: width, height;
transition-property: width, height
}
推荐阅读
- objective-c - 覆盖 UIButton 类的默认构造函数的问题?
- sql - 如何使用列作为变量遍历表
- javascript - 将多个同名表单输入映射到一个 JavaScript 对象
- nginx - Nginx 配置文件中的 $http_origin
- constants - Libav实习生编码器和libvo-aacenc有什么区别?
- powershell - 有没有办法使用 PNP 更新 SharePoint 文件夹上的“创建者”和“创建者”字段
- android - 我怎么知道用户刚刚续订了 google play 订阅?
- delay - 使用 YOSYS 进行表征
- html - Ionic 4 自定义弹出框、模态组件或页面样式
- python - 从视图中,我如何将上下文和注册表单传递给我的注册模板?