css 来自https://prosulum.zendesk.com/entries/59409583-How-to-Create-Horizo​​ntal-Opt-In-Form-in-Header

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 来自https://prosulum.zendesk.com/entries/59409583-How-to-Create-Horizo​​ntal-Opt-In-Form-in-Header相关的知识,希望对你有一定的参考价值。

 You should have already added the action box to your header. If not, please see this forum thread https://prosulum.zendesk.com/entries/21306111-Can-you-use-Magic-Act...

The following custom css code should create a horizontal opt in form with text to the left and the form fields in line to the right.. You'll need to know the ID of your action box. To find the ID, go to Magic Action Box -> Action Boxes page. The ID should show up on the 2nd column right after the Title of the action box (on the first column).

Then, edit the action box that you'd like to display as horizontal opt in form and go down to the end of the edit screen. Enter the following css code into the Custom CSS field:

.mab-id-XXXX.magic-action-box .mab-content{ text-align: center; }
.mab-id-XXXX.magic-action-box .mab-wrap .mab-heading{ display: inline-block; margin-right: 0 !important; vertical-align: middle; width: 450px !important; }

.mab-id-XXXX.magic-action-box .mab-wrap .mab-main-content{ display: inline-block; margin-right: 0 !important; vertical-align: middle; width: 450px !important; }

.mab-id-XXXX.magic-action-box .mab-main-action-wrap{ display: inline-block; vertical-align: middle;}

.mab-id-XXXX.magic-action-box .mab-main-action-wrap .mab-field{ margin-bottom: 0; }
.mab-id-XXXX.magic-action-box .mab-main-action-wrap .mab-field label{ display: inline !important; }

.mab-id-XXXX.magic-action-box .mab-main-action-wrap form{ margin: 0 !important; }
.mab-id-XXXX.magic-action-box .mab-main-action-wrap form input[type="submit"]{ margin: 0 !important; }

 

Replace XXXX with the actual ID number of your action box. 

以上是关于css 来自https://prosulum.zendesk.com/entries/59409583-How-to-Create-Horizo​​ntal-Opt-In-Form-in-Header的主要内容,如果未能解决你的问题,请参考以下文章

来自 CSS Intellij 的自动完成 HTML 属性

css APP-transitional.css。来自Project 3的CSS Grid样式表。

css CSS:媒体查询(来自stephen.io的bootstrap +移动设备)

CSS知识点合集---来自安阳某师范!

继承/覆盖来自不同外部文件的现有 CSS 规则

来自css的奇怪颜色污点