案例:   代码:

element.style {
  1. width: 0;
  2. height: 0;
  3. /* border-left: 50px solid transparent; */
  4. border-right: 50px solid #383030;
  5. border-bottom: 100px solid green;
}
分析:
css 当width 为 0,height为0, border不同时,不同的border为solid时就分冲突空间,而后会均分空间,要想实现多边形,可以把某个边设置为 solid transparent透明可以实现。
另,实现椭圆,使用border-radius可用。 border-radius: 100px, 50px; 或者要实现 此现在可以使用rotate css3属性。

最新文章

  1. HDU 5053 the Sum of Cube(简单数论)
  2. [Python] Ubuntu12.04LTS
  3. 单例模式singleton
  4. unity, GL.TexCoord or GL.Color must put before GL.Vertex!!!
  5. Python文件处理(1)
  6. PHPStorm 安装 SASS、SCSS + Compass
  7. Maven-FAQ
  8. python 中的 args,*args,**kwargs的区别
  9. Kafka生产者-向Kafka中写入数据
  10. IDEA+快捷键
  11. Spring Boot/Spring Cloud
  12. C#-1-1-.net
  13. Mac提醒事项如何设置为24小时制
  14. http状态码204/206/200/302/303/307
  15. sas 获取字符串长度实例
  16. 利用spring-mail模块发送带附件邮件dome
  17. centos6安装GitLab全程详解和常见问题解决
  18. Integer和new Integer
  19. hibernate的枚举注解@Enumerated
  20. Spring4 MVC RESTFul WebServices CRUD实例+RestTemplate

热门文章

  1. js原生实现三级联动下拉菜单
  2. Building a Space Station POJ - 2031
  3. 动态规划:HDU1160-FatMouse's Speed(记录动态规划状态转移过程)
  4. 扩展程序 - Google Chrome
  5. Cuba studio框架中使用thymeteaf模板时中文乱码
  6. Spring---浅谈IOC
  7. datagrid的formatter
  8. java多线程的常用方法
  9. 2、HTML基础总结 part-2
  10. 【Palindrome Number】cpp