gpt4 book ai didi

html - 列间距/填充

转载 作者:太空宇宙 更新时间:2023-11-04 06:45:25 24 4
gpt4 key购买 nike

我试图让我的列填充靠得更近,但是我将填充设置为 0,并且两者之间仍然存在问题。我想做到这一点,无论屏幕大小如何,每列都有 2 个元素,各列彼此靠近。连第二行的字都不显示

   <body>

</body>
<div class="pimg3">
<div class="row">
<div class="ptext">
<h1><strong>HOW I WORK</strong></h1>
<div class="column">
<i class="fas fa-search" style="color:#1d5ba0; padding: 10px"></i>
<h2>Research</h2>
<p>Understand the problem, empathize with the person. Explore the competitive landscape.
Identify strategic opportunities. Define design goals/requirements.</p>
</div>
<div class="column">
<i class="fas fa-flask" style="color:#1d5ba0; padding: 10px"></i>
<h2>Design</h2>
<p>Combine effective interfaces, smart interactions, and consistent visual language into
a captivating design that resonates with the target audience.
</p>
</div>
<div class="column">
<i class="fas fa-code" style="color:#1d5ba0; padding: 10px"></i>
<h2>Build</h2>
<p>Map design to code. Smooth constraints. Solve edge cases. Move that button 3 pixels to the left. Fill
the gap between functional and delightful.</p>
</div>
<div class="column">
<i class="fas fa-retweet" style="color:#1d5ba0; padding: 10px"></i>
<h2>Refine </h2>
<p>Test prototypes with real people against actual problems. Combine insights with gut intuition and experience.
Iterate and improve in pursuit of perfection.</p>
</div>
</div>
</div>
</div>
</body>

https://jsfiddle.net/kdb4raLx/1/

最佳答案

这可能是因为你的 ptext 似乎是罪魁祸首

关于html - 列间距/填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53364693/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com