开发者 | clevelandwebdeveloper |
---|---|
更新时间 | 2024年3月27日 05:44 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 6.4.3 |
版权: | GPLv2 |
版权网址: | 版权信息 |
Every time you press Enter or Shift-Enter you will get line breaks that are a certain specific height. Some times you want control over the exact amount of space between lines.
Settings > Spacer > Default Spacer Height On Mobile > Set this to 0
Press the spacer button in WYSIWYG visual editor, then choose which spacer you want to add (see screenshot). This will add a shortcode [spacer height="20px"]. If you choose a custom Spacer, it will add something like [spacer height="40px" id="19"]
After you add a spacer via the spacer button in WYSIWYG visual editor, you can change the height in the shortcode. For example, let's say you start off with the shortcode [spacer height="20px"]. Change 20px to whatever your desired line spacing is. For example, [spacer height="30px"] will give you 30 pixels of extra line spacing. If you use negative values the following content will be shifted upwards.
Here's an example of how you could apply this: [spacer height="30px" mheight="0px" class="myspacer" style="background-color:red;"]
Settings > Spacer > Add Spacers (top tab) > New Spacer
Try adding something like background:gray;
to the Spacer's Style setting.
Try adding margin-bottom: 25px;
to the Spacer's Style setting.