css - MailPoet:我如何固定我的定位?每次我放大和缩小时,一切都不合适。CSS
问题描述
我正在为我的 WordPress 网站使用一个名为 MailPoet 的插件。左右设置所有右边距后,一切看起来都很好。但是当我放大和缩小时,一切都不合适了。我如何解决它?
我试过使用 float: center; 在表格 {} 下。那没有用。所以我也尝试使用 margin: auto; 对于所有保证金代码。它也没有用。对不起这个问题我是一个完全的新手。
/* form */
.mailpoet_form {
}
form {
margin-bottom: 0;
margin-left: 350px;
}
p.mailpoet_form_paragraph {
margin-left: 280px;
margin-bottom: 10px;
}
/* columns */
.mailpoet_column_with_background {
padding: 10px;
}
/* space between columns */
.mailpoet_form_column:not(:first-child) {
margin-left: -550px;
}
/* input wrapper (label + input) */
.mailpoet_paragraph {
line-height:20px;
margin-bottom: 20px;
}
/* labels */
.mailpoet_segment_label,
.mailpoet_text_label,
.mailpoet_textarea_label,
.mailpoet_select_label,
.mailpoet_radio_label,
.mailpoet_checkbox_label,
.mailpoet_list_label,
.mailpoet_date_label {
display:block;
font-weight: normal;
}
/* inputs */
.mailpoet_text,
.mailpoet_textarea,
.mailpoet_select,
.mailpoet_date_month,
.mailpoet_date_day,
.mailpoet_date_year,
.mailpoet_date {
display:block;
}
.mailpoet_text,
.mailpoet_textarea {
width: 400px;
}
.mailpoet_checkbox {
}
.mailpoet_submit {
}
.mailpoet_divider {
}
.mailpoet_message {
}
.mailpoet_form_loading {
width: 30px;
text-align: center;
line-height: normal;
}
.mailpoet_form_loading > span {
width: 5px;
height: 5px;
background-color: #5b5b5b;
}
解决方案
推荐阅读
- typescript - typescript 在保留类型的同时优雅地强制执行约束
- javascript - 右边的overflow-x位置
- python - 如何使用 selenium 从最小化的网页中获取 xpath 和 ids 等数据
- arrays - C中的多维数组初始化
- reactjs - 在反应中使用带有样式属性的 lastChild 选择器
- arrays - Powershell - 如何根据列中的值将电子邮件发送到不同的组
- linux - 如何在linux中使用expect?
- c# - Enable-Migrations 已过时。使用 Add-Migration 开始使用迁移
- git - 强制 git 显示合并冲突
- python-3.x - 如何将图像分成 4 个相等的部分并对每个部分进行一些处理,然后最后合并所有处理后的图像部分?