- 博客(5)
- 收藏
- 关注
原创 ionic3启动后白屏
1.配置config.xml文件: <preference name="ShowSplashScreenSpinner" value="false" /> <preference name="AutoHideSplashScreen" value="false" /> <preference name="FadeSplashScr
2018-08-18 09:41:11 821
原创 Ionic3 click事件失效
问题描述:click事件在某些android机上失效,加上alert就好用 问题分析:click和*ngIf一同使用 <div class="equip" *ngIf="item1.room.length>0" (click)="goLab(item3.id,item1.id)"></div> 解决方案:将click事件和*ngIf分开写 ...
2018-08-18 09:35:07 2602
原创 ionic3启动前黑屏
1.启动前黑屏 1)platforms/android/app/src/AndroidManifest.xml <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="tr...
2018-08-16 15:53:23 791
原创 ionic3 ion-segment动态添加数据,点击无效
解决方案: import { ViewChild } from '@angular/core'; import {Segment } from 'ionic-angular'; export class FloorsPage { @ViewChild(Segment) segment: Segment; } 在数据请求之后添加: setTimeout(() => { ...
2018-08-16 13:34:51 1142 1
原创 css实现根据元素宽度值,设置高度
div{ width:40%; height:0; font-size:0; line-height:0; padding:40% 0 0; } padding的值可以设置为两种类型。 1. 一种是固定值(例如 px单位),必须是正值; 2. 第二种则是百分比值(%),此时 padding的大小是相对于元素的 ...
2018-08-16 13:34:15 3640
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人