Ser*_*Pie 5 css webkit polygon vertical-alignment css-shapes
如何垂直对齐块内的文本?如果不制动左侧具有shape-outside属性的元素,我就无法做到这一点。
.a {
width: 150px;
height: 300px;
background-color: yellow;
}
.b {
float: left;
-webkit-shape-outside: polygon(0% 50%, 100% 0%, 0% 0%, 0% 100%, 100% 100%);
-webkit-clip-path: polygon(0% 50%, 100% 0%, 0% 0%, 0% 100%, 100% 100%);
width: 100%;
height: 100%;
background-color: black;
}
.c {
font-family: Arial;
font-size: 16px;
text-align: right;
}Run Code Online (Sandbox Code Playgroud)
<div class="a">
<div class="b"></div>
<div class="c">text text text text text text text text text text text text text text text text text text</div>
</div>Run Code Online (Sandbox Code Playgroud)
该图像显示了我所拥有的以及我正在努力实现的目标。

父元素的高度和文本的长度不固定。
小智 -1
just put **padding-top:100px;** to "c" class,
.c {
font-family:"Arial";
font-size:16px;
text-align:right;
padding-top:100px;
}
Run Code Online (Sandbox Code Playgroud)
http://jsfiddle.net/slokuliyana/yt4py6oa/1/