2015-07-22 W.Y.
当我们在进行 Web 开发时,很多时候都是在有意或无意地创建一些矩形,深究一下,到底有多少中方式来得到一个几何图形呢?本文将简单介绍几种生成圆形、三角形和多边形的方式,并分析每种方式的优缺点。 下面是可能使用到的方式: border-radius border rotating shapes with transform pseudo elements box-shadow wrapping text into shapes with shape-outside clip-path on an element SVG assets canvas more border-radius 使用 border-radius 样式属性是 继续阅读 »