html - ION-LIST 左右填充不同内容

标签 html css ionic-framework fill ion-list

我想用不同国家/地区的不同 Weatherdata 填充 ionic 列表的左侧和右侧。我希望有一个人可以帮助我。几个小时以来,我一直在寻找解决方案。

CLICK HERE FOR THE GUI OF THE APPLICATION

THIS IS THE GUI OF THE GUI

这是我选择 ionic 列表的代码:

<ion-view title="Termine" hide-nav-bar="true" id="page3" style="background-color: rgb(220, 220, 224);" >
  <ion-nav-buttons side="right">
      <button class="button button-icon icon ion-plus-round"></button>
  </ion-nav-buttons>
  <ion-content padding="true" class="manual-ios-statusbar-padding">

    <div ng-controller="WeatherBerlinCtrl">
    <!-- WEATHER SECTION -->
    <ion-list id="termine-list">
      <ion-item class="item-thumbnail-left" id="termine-list-item46"style="">

      <img src={{vWeatherLinkIcon}}>
      <h2 style="text-align: left; width:49%; display: inline-block; font-weight: bold;">Berlin {{vWeatherActDegrees}} °C</h2> 

      <!-- <img style="float: right;" src={{vWeatherLinkIcon}}> -->
      <h2>Max: {{vWeatherMaxDegrees}} °C</h2>
      <h2>Min: {{vWeatherMinDegrees}} °C</h2>

<!--       <div class="item-thumbnail-right">
                <img style="float: right;"  src={{vWeatherLinkIcon}}>
     <div ng-controller="WeatherKabulCtrl">
      <h2 style="text-align: right; width:50%;  display: inline-block;  font-weight: bold;">Berlin {{vWeatherActDegrees}} °C</h2>
                      </div> -->

    </ion-list>
    <div class="spacer" style="width: 748px; height: 15px;"></div>`

最佳答案

在 ionic 列表中使用 ionic 网格怎么样?

 <ion-grid>
  <ion-row>
    <ion-col>
      left
    </ion-col>
    <ion-col>
      right
    </ion-col>
  </ion-row>
</ion-grid>

ionic doc

关于html - ION-LIST 左右填充不同内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50160594/

相关文章:

HTML 最大宽度和高度在 IE 中不起作用

javascript - jquery 中 .removeClass() 的参数定义是什么

jquery - 如何更改或添加 jquery 移动加载程序小部件的类?

css - 改变 ionic 背景不透明度?

android - Ionic + Cordova Android 构建错误 - 找不到 tools.jar

html - 如何使 <a> 标签的大小与其父 <li> 标签的大小相同,以获得更大的可点击区域?

javascript - 根据 c3 条形图中的坐标对齐外部元素

css - 帮我用 css 设计一个表单

javascript - 如何在 react 中制作阅读更多按钮?

ios - 更新到 iOS 9.3 后 SVG Sprite 不起作用