有没有办法设置Google Chrome默认pdf视图?我正在尝试将灰色背景颜色更改为白色,如果可能的话,也会使滚动条对于移动设备来说更大.
我试图在没有运气的情况下以css为目标
// pdf viewer custom style
iframe {
html {
body {
background-color: #ffffff !important;
}
#zoom-toolbar {
display: none !important;
}
#zoom-buttons {
display: none !important;
}
}
}
Run Code Online (Sandbox Code Playgroud)
它看起来像是在html上创建阴影文档,但我找不到任何方法来定位它
我有一个带有2个日期输入和一个清单的小表单,这些都是复选框.我无法弄清楚如何在列表中要求任何一个复选框进行表单验证.如果我为复选框添加了ng-required,则会为所有复选框重复该操作.任何人都可以知道如何要求复选框作为必需的表单元素.但我不想选择所有元素来使表格有效.因此,如果只有一个作为复选框的表单字段被选中,则表单必须有效,否则无效.
angular.module('frmApp', [
'ui.bootstrap', 'angularMoment'
])
.controller('Frm Controller', [
'$scope',
function($scope) {
$scope.invDets = $stateParams.details;
$scope.allowanceObj = {};
$scope.finCompWithLogo = [];
$scope.validUntil = new Date();
$scope.recentDate = new Date();
// Disable weekend selection
$scope.disabled = function(date, mode) {
return (mode === 'day' && (date.getDay() === 0 || date.getDay() === 6));
};
$scope.openedPayment = false;
$scope.openedAllowance = false;
$scope.openPayment = function($event, elementOpened) {
$scope.paymentDueDate = new Date();
/*$scope.openedPayment = !$scope.openedPayment;*/
$event.preventDefault();
$event.stopPropagation();
$scope[elementOpened] = !$scope[elementOpened];
};
$scope.openAllowance = function($event, elementOpened) { …
Run Code Online (Sandbox Code Playgroud)validation angularjs angularjs-directive angularjs-scope checklist-model