如何从 ionicPopup 中删除标题区域
How to remove title area from ionicPopup
我想从离子弹出窗口中完全删除标题区域。我删除了标题标签并尝试了。但仍然可以看到标题 space 可见。这是我的代码。
var registerPopup = $ionicPopup.show({
templateUrl: 'templates/register_popup.html',
scope: $scope
});
即使我完全删除了标题标签,标题区域仍然可见,只有空白 space,如下图所示。我想从 ionicPopup 中删除整个标题 space。我怎么才能得到它?代码中要进行哪些更改?
这是因为标题被包裹在 .popup-head
里面,它需要 space.
先在Popupobject中给cssClass
属性添加一个值custom-class
。
var registerPopup = $ionicPopup.show({
templateUrl: 'templates/register_popup.html',
cssClass: 'custom-class', // Add
scope: $scope
});
您可以使用自定义 CSS 隐藏它。
.custom-class .popup-head {
display: none;
}
我想从离子弹出窗口中完全删除标题区域。我删除了标题标签并尝试了。但仍然可以看到标题 space 可见。这是我的代码。
var registerPopup = $ionicPopup.show({
templateUrl: 'templates/register_popup.html',
scope: $scope
});
即使我完全删除了标题标签,标题区域仍然可见,只有空白 space,如下图所示。我想从 ionicPopup 中删除整个标题 space。我怎么才能得到它?代码中要进行哪些更改?
这是因为标题被包裹在 .popup-head
里面,它需要 space.
先在Popupobject中给cssClass
属性添加一个值custom-class
。
var registerPopup = $ionicPopup.show({
templateUrl: 'templates/register_popup.html',
cssClass: 'custom-class', // Add
scope: $scope
});
您可以使用自定义 CSS 隐藏它。
.custom-class .popup-head {
display: none;
}