您可以使用 flexbox 重新排序它们。尝试通过自定义 CSS 添加以下内容:
.cart_totals .wc-proceed-to-checkout {
display: flex;
flex-direction: column; /* So that it preserves the vertical layout */
}
.wcppec-checkout-buttons {
order: -1; /* This can vary according to other elements, play around the value */
}
输出:
![enter image description here](https://i.stack.imgur.com/sm5PZ.png)