内容简介:先来看以下效果:右侧文本环圆环排版。在未了解css shapes之前,实现这样的排版还是挺费事的,比如为每行设置不同的padding值。但是有了css shapes之后,两行css就搞定啦,一起来看看吧。
先来看以下效果:右侧文本环圆环排版。
在未了解css shapes之前,实现这样的排版还是挺费事的,比如为每行设置不同的padding值。但是有了css shapes之后,两行css就搞定啦,一起来看看吧。
See the Pen css-shapes by cc ( @glccgl ) on CodePen .
实现以上效果的主要属性是shape-outside,该属性定义了一个行内内容应该包裹的形状。可以通过图形函数来定义基本形状。
shape-outside: circle(arg) //创建圆 shape-outside: polygon(arg); //创建多边形 shape-outside: ellipse(arg); //创建椭圆 shape-outside: inset(arg); //创建矩形
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Coming of Age in Second Life
Tom Boellstorff / Princeton University Press / 2008-04-21 / USD 29.95
The gap between the virtual and the physical, and its effect on the ideas of personhood and relationships, is the most interesting aspect of Boellstorff's analysis... Boellstorff's portrayal of a virt......一起来看看 《Coming of Age in Second Life》 这本书的介绍吧!