Angularjs 角度引导在css html页面前面

Angularjs 角度引导在css html页面前面,angularjs,angular-ui-bootstrap,Angularjs,Angular Ui Bootstrap,我正在angular web应用程序中使用bootstrap 1.3.2。我只使用js库,而不是css,因为我正在为应用程序提供自己的样式。但是在生成的web应用程序中,有一些元素包含css数据,我没有插入这些元素 我检查了引导库,就在最后有一些类似的行 angular.module('ui.bootstrap.carousel').run(function() { !angular.$$csp().noInlineStyle && !angular.$$uibCarouse

我正在angular web应用程序中使用bootstrap 1.3.2。我只使用js库,而不是css,因为我正在为应用程序提供自己的样式。但是在生成的web应用程序中,有一些元素包含css数据,我没有插入这些元素

我检查了引导库,就在最后有一些类似的行

angular.module('ui.bootstrap.carousel').run(function() {
  !angular.$$csp().noInlineStyle && !angular.$$uibCarouselCss && angular.element(document).find('head').prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>');
  angular.$$uibCarouselCss = true;
});
angular.module('ui.bootstrap.carousel').run(函数(){
!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find('head').prepend('.ng animate.item:not(.left):not(.right){-webkit transition:0s ease-in-out-left;transition:0s ease-in-out-left});
角度。$$uibCarouselCss=true;
});
正如您所看到的,这是在我的网页中插入一些css。我可以评论这些行,但我想知道,为什么bootstrap会这样做?这是不应该删除的组件的“核心”css吗

我评论了那些台词,一切似乎都很好


感谢

这些样式用于支持指令中的某些行为,下面是对源代码中carousel css的一个改进。您应该在页面中保留这些样式

你能详细说明一下吗?我模模糊糊地理解$$csp被用作安全措施,但我不确定为什么css需要以这种方式显示。如果我只注释
angular.element(document).
部分,我的日期选择器将无法工作。