html - 使用 ProfitBuilder WP 在我的网站上添加额外填充

标签 html wordpress css padding

我目前正在复制这个网站:http://www.onlinemeetingnow.com/register/?id=q6wpivs95c&这里:http://beaminggeek.com/profitbuilder/test-2/

并使用名为 ProfitBuilder 的 WP 工具:http://wpprofitbuilder.com/

我这里特别有三个问题。 1. 我把 margin-top: 20px;在我的标签上(将其推到中心)在下面的图片上但是当我这样做时它会在顶部和下方增加一个边距:

enter image description here

enter image description here

这是我的代码:

<h2 style="text-align: center; font-size: 40px; font-weight: bold;"><span style="color: #ffffff; ">The 4-Step Strategy We Used to Build a</span><br /> <span style="color: #ffffff;"> 7-Figure Coaching Business...</span><br /> <span style="color: #ffffff; font-size: 25px; "> (while ignoring ALL the conventional wisdom!)</span></h2><p style="text-align: center;"><a style="font-family: 'Open Sans Condensed'; text-shadow: 1px 1px 1px rgba(0,0,0,0.3); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd800',endColorstr='#f7d100'); background: -moz-linear-gradient(center top,#ffd800 5%,#f7d100 100%); background-color: #ffd800; display: block; margin: 0 auto; position: relative; min-height: 33px; width: 280px; text-decoration: none; font-weight: bold; font-size: 30px; color: #fdffff; cursor: pointer; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border: none; padding: 17px 10px; text-align: center; z-index: 2; margin-top: 12px;" href="#">Claim My Spot Now >></a></p>

我对这两个部分也有一些问题,因为周围都有空格:

enter image description here

知道如何使用内联 CSS 使其看起来更完美吗?您可以使用 Chrome 检查器工具来检查这一点。

注意:Profit Builder Tool 是一种不与自定义 CSS 面板一起使用的工具,它意味着一切都只是普通的内联 CSS。

最佳答案

您为“立即领取您的位置”按钮设置了一个 padding-bottom。因此,当您将 margin-top 值放在 h2 之上时,它也会将您的 p 向下推,而 padding-bottom p 下推以下部分

关于html - 使用 ProfitBuilder WP 在我的网站上添加额外填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41971706/

相关文章:

javascript - 每次滚动页面时如何阻止 Jquery countTo 刷新

javascript - 如何预览假路径中存储的图片?

jquery - 尝试使用显示 :none on eliminating a couple of H2 elements from an accordion-style element

html - 如何将div移动到屏幕的右侧

html - 第一行文本缩进的 CSS 替代品?

html - 如何更改 "Choose File"或 "Browse"按钮文本和 "No file selected"文本。示例 :

wordpress - 如何从 acf wysiwyg 字段字符串中删除包装 p 标签以供以后自定义摘录处理

php - 如何在 Wordpress 中使用 Bootstrap 为页脚指定高度?

CSS伪元素jquery点击事件?

javascript - 在 div 元素中显示 javascript 消息