html5锥形,html – 使用CSS的锥形div
html5锥形,html – 使用CSS的锥形div
这
can be achieved与
transparent border!
CSS
#test1 {
border-top: 100px solid red;
border-bottom: 100px solid red;
border-right: 100px solid transparent;
width: 300px;
}
#test2 {
border-top: 100px solid red;
border-right: 50px solid transparent;
height: 0;
width: 100px;
}
#test3 {
border-top: 100px solid red;
border-right: 50px solid transparent;
height: 100px;
width: 100px;
content: 'ds';
z-index: -1; /* make it the background */
}
#test3 .content {
position: relative;
top: -100px;
margin: 5px;
float: left; /* wrap the text */
clear: left; /* for demo */
font-size: 1em;
background-color: cyan;
}
HTML
Watch for the
new lines.
Do not overlap.
最新文章
- 老鼠出迷宫
- Annotation 和Spring Annotation 知识整理
- iOS annotation
- Platform 概述
- Linux下重启MYSQL的命令
- DEV GridView 部分属性
- 职场论
- VSS使用技巧
- 针对ONION勒索病毒!如何关闭139端口及445端口等危险端口
- ext3文件系统基础
- ext2ext3 结构分析
- niosii spi 外部
- 电脑上怎么发出电子版准考证
- 机器学习并没有那么深奥,它很有趣(2)
- hashmap hashtable
- extern用法详解
- 小程序 订单倒计时系列
- 微信小程序用定时器实现倒计时效果
- Shiro登录的使用以及原理(一)
- DBCC 简介