Angular 为什么我看到一个像thingy这样的下拉菜单,需要用chrome“打开”我的角度组件

Angular 为什么我看到一个像thingy这样的下拉菜单,需要用chrome“打开”我的角度组件,angular,google-chrome,Angular,Google Chrome,为什么我看到的是Chrome而不是IE11中的角度细节组件的内容 如果我像thingy一样打开下拉列表,我会看到内容,但为什么我得到的是这个而不是内容?我的同事发现了罪魁祸首,似乎“细节”对于角度组件是一个糟糕的选择。。。因为HTML5已经包含了一个-tag。 所以不要使用: @Component({ selector: 'details', templateUrl: './details.component.html', styleUrls: ['./details.compone

为什么我看到的是Chrome而不是IE11中的角度细节组件的内容


如果我像thingy一样打开下拉列表,我会看到内容,但为什么我得到的是这个而不是内容?

我的同事发现了罪魁祸首,似乎“细节”对于角度组件是一个糟糕的选择。。。因为HTML5已经包含了一个-tag。 所以不要使用:

@Component({
  selector: 'details',
  templateUrl: './details.component.html',
  styleUrls: ['./details.component.css']
})
而是使用:

@Component({
  selector: 'detailsWhatever',
  templateUrl: './details.component.html',
  styleUrls: ['./details.component.css']
})
或任何其他不只是“详细信息”的选择器。

也许可以尝试检查两种浏览器之间的样式是否不同?您是在网页内部还是在开发工具中?是的,在网页内部。所以我有一个网页之前,它有一个routerlink打开详细信息组件。。。出于某种原因,这在Chrome中显示为一个小下拉列表,但在IE11中没有。下拉列表的类是ng star