for special reasons, this project still uses ionic1 for programming, how to adapt to various sizes of mobile phone screens, using em or rem?
if it is a more advanced version of ionic, does it have its own way to adapt?
for special reasons, this project still uses ionic1 for programming, how to adapt to various sizes of mobile phone screens, using em or rem?
if it is a more advanced version of ionic, does it have its own way to adapt?
No, so you have to write the adaptation function yourself. It is recommended to use vw for adaptation. The code on the scss side is as follows: enter the width and height in the design draft, you can directly calculate the width and height on the real machine. Suppose the width of the design draft is 720; you can take a look at my small project: hw-basic
$screen_width=720;
@function rem(width){
@return (width/$screen_width)*100vw
}
< html > <ion-list> <ion-item *ngFor= let i of list >< ion-item> < ion-list> < html > how do I listen to whether ngFof has finished traversing this array? ...
package using ionic-cil, enter the following command: ionic build --prod Show the error: how to solve this problem? ...
WINDOWS for ionic+android development error installing android platform support error message is as follows: D: projects MyIonicProject>ionic cordova platform add android > cordova platform add android --save Using cordova-fetch for cordova...
when testing in the browser, using the back button that comes with the browser does not return the animation. I remember that there are all ionic1. I don t know how to solve it. ...
I used Ionic3 to make a mobile hybrid app, and now I want to click the button to pop up a separate page. I use modals to achieve it. created the page using Ionic3 CLI:ionic g page details, where details is the page I want to pop up. then in the place ...
how to solve this problem when the ionic project is packaged can t be solved. ...
I have a function in all.js that drawA (), now needs to call in the component st of the ionic3 project to draw. has tried several scenarios on google and failed to solve this problem. find a feasible solution. ...
after running ionic cordova build android, the build folder is still missing from the folder, and this error occurs on the command line that did not generate apk, . ...
Why is there no build in the new code? Is there anything you need to do before build? ...
ionic3angular5ionic3alertControllerionic3es6alertconfirm ionic1+angularjs1+JavaScriptalertconfirmfunctionoptionionic1$popupoptions ...
an error occurred when I used the command line ionic start mm to create a project named mm, and the project could not be created. error message is I would like to ask you, how should this error be solved? Thank you ~ ...
execute the ionic instruction and skip it directly. Cordova-v installed at the same time can execute ...
the project is relatively large, and I want to load some more important pages in advance. What should I do? ...
ionic start-- pro-id * Using my-sweet-app for name. ? What starter would you like to use: tutorial tick Creating directory. My-sweet-app-fail! Downloading and extracting tutorial starter-failed! Error: read ECONNRESET at _errnoException (util...
use ionic2+angularjs4 for mixed development and use < ion-list > tags for layout. The small circle part and the list part are both < ion-list > cloth games, but during the real machine test, it is found that the small circle in the current view is no...
can the cordova plug-in be introduced directly with the script tag instead of cordova plugin add com.phonegap.plugins.barcodescanner? ...
A rookie ionic, please give me your advice. Ionic makes a mobile phone app page to get the list of orders, with four tags that show different status of orders. Each time you enter a tag, you empty the list of orders and retrieve the corresponding orders...
how to evoke ionicAPP ...
h5 evokes ionic android ios APP how should the AndroidManifest.xml file be configured Thank you for answers ...
when you select January, you want the page replacement data to be January volunteer data, but after clicking, the browser log can display the January data, but the page data is not changed. log html page <ion-header> <ion-toolbar col...