如何在动态div内均匀地放置字符(字母间距)? [英] How to space characters(letter spacing) evenly inside a dynamic div?

查看:90
本文介绍了如何在动态div内均匀地放置字符(字母间距)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在动态生成div。根据条件,我需要将输入到div的字符均匀分隔,以便ift适合div的宽度。我怎么能这样做?



我尝试过:



在CSS中尝试行间距。但是没有得到正确的结果。

I am generating divs dynamically. Based on a condition, I need to space the characters entered to the div evenly so that ift fits the width of div. How can I do this ?

What I have tried:

Tried line-spacing in CSS. But not getting correct result.

推荐答案

看看这个 [ ^ ]。看起来很有希望。
Have a look at this[^]. Looks promising to me.


这篇关于如何在动态div内均匀地放置字符(字母间距)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆