html - table 破了,不是从一端走到另一端

标签 html css marquee

我使用虚线创建了一个表格,如何使虚线绕着表格形式走动,而不是从头到尾??? <style="border: dashed 2px #ee3f10;padding: 15px; margin: 0; text-align: justify; line-height:23px; color: #1a356e; font-size:18px">

最佳答案

段落元素默认是 block 元素。 block 元素将占用所有可用宽度。

要改变它,只需添加 display: inline-block; 到你的 p:

<p style="border: dashed 2px #ee3f10;padding: 15px; margin: 0; text-align: justify; line-height:23px; color: #1a356e; font-size:18px; display:inline-block;"> </p>

关于html - table 破了,不是从一端走到另一端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42297824/

相关文章:

android - TextView 的反向选取框

javascript - 将特定日期之前的所有剩余日期插入 slider 中

jquery - 使用选择选项重置滑动按钮

javascript - PHP 动态选框一次滚动一个项目

html - stellar.js 的视差效果 - 调整大小后出现空白

HTML & CSS : How do I completely remove the scroll-bars on the side of <div>?

android - 在同一 LinearLayout 中更改另一个 TextView 时,TextView 会重新启动 Marquee

javascript - 访问文件中的特定行并使用 javascript 更改它

html - div :hover 问题

html - 为什么在居中图像时会出现 1px 舍入误差以及如何解决它?