我尝试将一个Ion-List添加到我的应用程序中,项目构建如| Image | Text | Button
图像和按钮垂直居中,但文本没有.
我尝试在互联网上找到一些CCS,它在浏览器预览中工作正常,但在真实设备上却没有(三星Galaxy S3 Mini,Android 4.1.2)
style="position: absolute; top: 50%; transform: translateY(-50%);"
码
<ion-content>
<ion-list>
<ion-item class="item-avatar item-icon-right" collection-repeat="x in y" href="#/pages/{{x.id}}">
<img src="img/{{x.icon}}.png">
<div style="position: absolute; top: 50%; transform: translateY(-50%);">{{x.name}}</div>
<i class="icon ion-chevron-right icon-accessory"></i>
</ion-item>
</ion-list>
</ion-content>
Run Code Online (Sandbox Code Playgroud)
在设备上
我想写一个批处理文件,为我的离子项目创建一个发布apk.
执行:"cordova插件rm cordova-plugin-console" - >工作但CMD窗口关闭后.
XCOPY %project% %release% /S /E /C /H /O /R /Y /D /V
cd %release%
cordova plugin rm cordova-plugin-console
-- exits the window after this command --
cordova build --release android
Run Code Online (Sandbox Code Playgroud)有什么想法吗?