CSS vertical-align

上一页 下一页

示例中展现不同的vertical-align属性值.

选择不同的值查看对应结果:

vertical-align: baseline;
vertical-align: sub;
vertical-align: super;
vertical-align: top;
vertical-align: text-top;
vertical-align: middle;
vertical-align: bottom;
vertical-align: text-bottom;
vertical-align: 0px;
vertical-align: 10px;
vertical-align: 25px;
vertical-align: -25px;
vertical-align: -50px;
vertical-align: 1cm;
vertical-align: 10%;
vertical-align: 50%;
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value
In this paragraph, the blue span change the vertical-align value

要使用更多方法,请在编辑器中试一下: 亲自试一试 ❯