”工欲善其事,必先利其器。“—孔子《论语.录灵公》
首页 > 编程 > 如何使用简单的CSS将文本与均匀的点间距对齐?

如何使用简单的CSS将文本与均匀的点间距对齐?

发布于2025-02-18
浏览:748

How to Align Text to the Right with Uniform Dot Spacing using Simple CSS? 
在CSS

药物1 ............ 10毫升 另一种药物……50毫升 Third ............. 100ml

Answer: To achieve this justification, a technique utilizing the :after pseudo-element is commonly employed: [2 dt {float:左;宽度:300px;溢出:隐藏;白色空间:nowrap} dd {float:左;宽度:100px;溢出:隐藏} dt:之后{content:“ ................................................................................................................................................................................................ ..........................................................................................

html:
Drug 1 ............  10ml
Another drug ......  50ml
Third ............. 100ml

Limitations:

IE versions below 8 are not supported.

Content cannot include HTML entities, limiting the use ·。但是,UTF-8字符可以满足大多数需求。
            
最新教程 更多>

免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。

Copyright© 2022 湘ICP备2022001581号-3