我需要以一种形式对齐标签和内容,但是没有我尝试过的代码。
预期
当前外观
我创建的CSS代码是这样的:
.crm-webform, .crm-webform-label, .crm-webform-fieldset, .crm-webform-input-label, .crm-webform-group, .crm-webform-input, .crm-webform-label-content {font-family: Open sans, 'Open sans', Lato, sans-serif; font-size:14px; color:black; margin: 0px 0px 3px 0px; }
.crm-webform-input {height: 32px; } .crm-webform-icon {height: 22px; line-height: 30px;} #LEAD_UF_CRM_5BEF2B8E126AA { padding: 1px 3px 1px 3px; height:60px; resize: both;
overflow: auto;} label[for=LEAD_UF_CRM_1550937652], label[for=LEAD_UF_CRM_1550937755] {height:0px; color:transparent; opacity:0; margin: 0px 6px 0px 6px;}
.flexible-middle-width, .crm-webform-header-container {background-color:transparent; background-opacity:0.4;}
/*#bx_form_iframe_6 , .crm-webform-block .bx_form_iframe_12 */
.*, * {background-color:transparent; background-opacity:0.4; font-family:Open-sans, Open sans, 'Open sans', Lato, sans-serif; color:black; }
h1, .crm-webform-header {color:black; font-family:Open-sans, 'Open sans', Lato, sans-serif; font-weight: bold; size:26px; letter-spacing: 1px; margin: 6px 0px 0px 0px;}
.crm-webform-input {font-weight:600; } .crm-webform-checkbox-container, .crm-webform-checkbox-radio, .crm-webform-checkbox-name {display:inline; font-family:Open-sans,'Open sans', Lato, sans-serif; font-size:14px; color:black; padding: 0px 4px 0px 9px;}
答案 0 :(得分:0)
如果您将这些属性设置为此类.crm-webform-field-string
(或也创建另一个类),它将起作用:
.crm-webform-field-string {
display: flex;
align-items: center;
}
其余的只是为标签容器设置margin-right
。
例如:
margin-right: 30px;