HTML如何让一行文字的每个字颜色分别不同而且居中

如题所述

<div class="footer">居中的部分
<span>靠右的部分</span>
</div>
<style>
.footer{ text-align:center; height:30px; line-height:30px; background:#F4F4F4; width:1000px; margin:0 auto; padding:0 10px; font-size:12px;}
.footer span{ float:right;}
</style>

你看一下 希望可以帮到你
这种是最简洁的方法了
温馨提示:答案为网友推荐,仅供参考