I have an admob advertisement at the bottom of my app. When I click on the input box in the footer of my page, not only does the keyboard pop up but the advertisement does too. How do I hide the advertisement so i just have keyboard and input.
If you want to hide any html element when the keyboard shows up you just have to add the 'hide-on-keyboard-open' class on the element.
To hide an element when the keyboard is open, add the class hide-on-keyboard-open.
<div class="hide-on-keyboard-open"> <div id="google-map"></div> </div>
将此代码添加到您的config.xml中:
<preference name="Fullscreen" value="true"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.