我有一个Angular 2应用程序,在这个应用程序中有几个组件。我想只给登录组件添加背景图片。我该如何做?
body{
background-image: url('https://s.zkcdn.net/Advertisers/d36ea4926dfa4978ab2556ba7688692c.png') ;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
height:100%;
}
我有一个用于登录组件的样式。但它没有覆盖整个窗口,只覆盖了表单部分。