我怎样才能在html上对齐这种段落

问题描述 投票:-1回答:3

如何使用css来做到这一点。

enter image description here

这将是标签:

<p>₱8500</p>
html css alignment
3个回答
2
投票

您可以使用html <sup></sup>标签来获得此效果。

<sub>987</sub>abc<sup>123</sup>

2
投票

另一种方法可能是qazxsw poi为qazxsw poi,保持在线。

::before
css

1
投票

试试这个

p::before {
  content: "₱";
  font-size: 11px;
  vertical-align: top;
}
© www.soinside.com 2019 - 2024. All rights reserved.