我使用的是一个由按钮组成的手风琴,我有'加号'和'减号'作为':之后'
到目前为止,我已经在按钮中尝试了“justify-content: center”,我也尝试过“vertical-align: middle”,但都没有任何效果,当我试图在按钮周围包裹一个 div 来实现样式时那个按钮,它停止了手风琴的工作。
在薄屏幕上,当加号进入文本时,我也遇到了麻烦,它目前向右浮动,但它们之间没有指定的空间来停止交叉。
我试图用来集中对齐这个元素的所有代码我都没有工作,请看下面:

这是代码:]
HTML:
<button class="accordion">Where is your company located?</button>
<div class="panel">
<p class="zpa-regular2">We are located in the heart of San Francisco, California USA! We do have shipping warehouses located in the USA, Europe, and Asia to ensure the quickest delivery for your location.</p>
</div>
<button class="accordion">What is the warranty and return policy?</button>
<div class="panel">
<p class="zpa-regular2"><span>We have a Risk-Free Policy. During this promotion - you can try the product for 30 days - if you decide for whatever reason this is not for you then you can return the device for a full refund.</span></p>
</div>
<button class="accordion">Does the product have a specific method of operation? Is it easy to use?</button>
<div class="panel">
<p class="zpa-regular2">Yes! It is very simple and easy to use. You will receive a detailed user manual with positions and pointers to maximize your results. :)</p>
</div>
精慕HU
慕村9548890
慕哥9229398
随时随地看视频慕课网APP
相关分类