我有一个文本小部件,希望将其变成一行。如何? div类似乎没有响应,或者我的CSS错误。
.textwidget {
white-space: nowrap;
overflow: hidden;
display: inline-block;
}
<div id="text-12" class="widget widget_text">
<h2 class="widget-title">More</h2>
<div class="textwidget">
<p>© Adsler 2019-2039 All rights reserved.<a href="https://adsler.co.uk/privacy-policy/">Privacy Policy</a><a href="https://adsler.co.uk/terms-and-conditions/">Terms and
Conditions</a><a href="https://adsler.co.uk/cookie-policy/">Cookie
Policy</a>
</p>
</div>
</div>