具有左右对齐文本的离子项 [英] Ionic item with left and right aligned text

查看:112
本文介绍了具有左右对齐文本的离子项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在离子列表中有一个离子项。左对齐第一个文本和右对齐第二个文本的最佳方法是什么?

I have an ionic item in an ionic list. What is the best way to left align the first text and right align the second text?

  <div class="item">
    <span>first</span>
    <span>second</span>
  </div>


推荐答案

这可以使用基本的CSS属性来完成。这里没有任何关于离子的特定信息。这可以使用 float:left float:right 属性来完成。

This can be done using basic CSS properties. there is nothing specic about ionic here. This can be done using float:left and float:right properties.

仍然可供您参考链接

这篇关于具有左右对齐文本的离子项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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