I want to create app in Nativescript with fullscreen image on page. I have to use background-image: url('~/images/background.jpg');
. But how to make it full screen.
Thanks for your help
标签:
nativescript
相关问题
- Cannot find connected devices. Emulator start fail
- Multiline textbox in nativescript
- Angular Nativescript visibility defaults to true,
- NativeScript: Way to disable zoom controls for iOS
- nativescript ios app crashes - attempting to chang
相关文章
- Expected 2 arguments, but got 1.ts(2554) core.d.ts
- Kiosk mode in NativeScript for Android App
- Stop keyboard overlay when interacting with TextFi
- Can I share to my NativeScript app?
- Chrome Devtools opens as a search rather then the
- Center and right/left align items in a NativeScrip
- How to show keyboard when page loads in android ap
- Nativescript bare webview doesnt seem to work
If you want the
Page
to have a fullscreen image background, add your images to/App_Resources
and do this in your component:Update: You can add CSS to enforce fullscreen.
Note: Assign this CSS class to your
Page
.This does not work with animated gif. My style:
The gif is shown, centered and enlarged, so great, but static: the animation does not moves.
This worked for me:
if you're using nativeScipt with Angular, you can use:
You need to use the NativeScript supported CSS properties to achieve this.
I've used the following CSS on a background-image attached to the
<Page>
view before and it works fine.