离子搜索栏减少底部边距

Ionic searchbar decrease margin at the bottom

我正在使用 Ionic/Angular 开发网络应用程序。现在我想实现一个搜索栏,但底部的边距太大。我怎样才能减少保证金?你可以在图片上看到我的问题。预览在 iPhone SE2.

实际上有两件事造成了这种情况。搜索栏下方的边距和列表周围的填充。您可以将 padding-top: 0 设置为您的列表。它会完成工作。