当然可以。这是一棵简单的五颜六色圣诞树:
<div style="display: flex; align-items: center;">
<div style="height: 250px; width: 200px; background-color: green;">
<div style="height: 50%; width: 100%; background-color: red;"></div>
<div style="height: 50%; width: 100%; background-color: yellow;"></div>
</d