」工欲善其事,必先利其器。「—孔子《論語.錄靈公》
首頁 > 程式設計 > 如何使用簡單的CSS將文本與均勻的點間距對齊?

如何使用簡單的CSS將文本與均勻的點間距對齊?

發佈於2025-02-18
瀏覽:590

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