gpt4 book ai didi

html - 在 Tablepress (Wordpress) 中垂直对齐文本/图像

转载 作者:行者123 更新时间:2023-12-05 07:54:04 26 4
gpt4 key购买 nike

我正在尝试向 Tablepress 中的表格添加垂直居中对齐,但它只为您提供了添加额外 CSS 的选项。

我试过一般对齐;

.tablepress-id-1 td {
vertical-align: middle;

但是没有用。任何帮助都会很棒。默认情况下,它显示文本正确对齐问题是我在单元格中输入的图标。

任何帮助都会很棒。

最佳答案

取自newbloggerzone.com :

Centering Text in a Specific Column in a Specific Table OnlyHere’s how to align specific columns of content in your table only:

Go to the Plugin Options tab on the main menu of the TablePress plugin on your Dashboard.At the top of this page is a Frontend Options box with Custom CSS in it. This is where you need to put the code in. Make sure the “Load these Custom CSS commands to influence table styling” box is ticked.You then need to put specific kind of code into this box, as follows:

.tablepress-id-x .column-x {
text-align: center;
}

where x is the number of the table and the column you want to center. All tables you create get assigned a number or ID, which is in the shortcode. This is what you put in to identify which table needs this styling, along with the columns number you want to centre.

关于html - 在 Tablepress (Wordpress) 中垂直对齐文本/图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31835768/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com