Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/469.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在网格模板中定义样式_Javascript_Css_Angularjs - Fatal编程技术网

Javascript 在网格模板中定义样式

Javascript 在网格模板中定义样式,javascript,css,angularjs,Javascript,Css,Angularjs,我有一个ng网格,代码如下: $scope.gridOptionsReports = { data: 'Reports', multiSelect: false, columnDefs: [ { field: 'Row', displayName: 'Row', width: 40 }, { field: 'OperationStatus', displayName: 'Operations ', width: 200 },

我有一个ng网格,代码如下:

$scope.gridOptionsReports = {
    data: 'Reports',
    multiSelect: false,
    columnDefs: [
        { field: 'Row', displayName: 'Row', width: 40 },
        { field: 'OperationStatus', displayName: 'Operations ', width: 200 },
        { field: 'Date', displayName: ' Date', cellTemplate: '<input class="fieldtext" type="text" ng-click="reportExistChecker(currentDocumentIndex)" ui-mask="9999/99/99" style="width: 80px; margin-right: 10px; text-align:center;">', width: 100 },
        { field: 'Consideration', displayName: 'Consideration', cellTemplate: '<label>Exist</label><input type="checkbox" ng-click="reportExistChecker(row)">', width: 200 }
    ]
};
$scope.gridoptions报告={
数据:“报告”,
多选:错,
columnDefs:[
{字段:“行”,显示名称:“行”,宽度:40},
{字段:'OperationStatus',显示名称:'Operations',宽度:200},
{字段:“日期”,显示名称:“日期”,单元格模板:“”,宽度:100},
{字段:“考虑因素”,显示名称:“考虑因素”,单元格模板:“存在”,宽度:200}
]
};
  • 我怎样才能在我的牢房里改变风格?(我的风格行不通)
  • 我想在我的cellTemplate中一起编写两个html代码。(就像我的最后一行ng网格。(我的代码不工作。)

  • 谢谢。

    什么不起作用?你这里的打字错误
    margin righ
    应该是
    margin right
    谢谢。这是我的打字错误。但我的意思是任何样式,如宽度和文本对齐等,都不起作用。我的ui掩码也不起作用。什么不起作用?你这里的打字错误
    margin righ
    应该是
    marg右侧
    谢谢。这是我的输入错误。但我的意思是任何样式,如宽度和文本对齐等,都不起作用。而且我的ui掩码也不起作用。