Css sass:第一个子选择器不工作

Css sass:第一个子选择器不工作,css,compass-sass,Css,Compass Sass,我有一个元素在ng repeat中 <div class="panel panel-default" ng-repeat="candidateInfo in aCandidateDetails"> <div class="panel-heading"> <div class="row"> <div class="col-xs-1"> <a style="cursor:pointer">

我有一个元素在ng repeat中

<div class="panel panel-default" ng-repeat="candidateInfo in aCandidateDetails">
<div class="panel-heading">
    <div class="row">
        <div class="col-xs-1">
            <a style="cursor:pointer">
      {{candidateInfo.name}}</a>
        </div>
    </div>
    <div stop-watch time="xyz" name="candidateInfo.name" time-of-interview="candidateInfo.doi" class="panel-height" ></div>
</div>
但它不起作用,不知道我哪里出了问题


如果有任何帮助,我们将不胜感激

哪个部门希望准确应用样式?我想将css应用到我不知道如何使用
ng repeat
。如果你粘贴的所有代码块都重复了,那么css代码应该是:
.panel:first:child.panel height{height:500px;}
我已经尝试过这样做,但这里我使用的是sass,所以我想我需要使用&:first child,但这不起作用。你是否尝试在面板父面板的第一个面板标题中设置秒表的样式?我有点困惑。现在看看你的标记,你的选择器对我来说没有意义。到底是哪个div想要应用样式?我想要将css应用到我不知道如何工作
ng repeat
。如果你粘贴的所有代码块都重复了,那么css代码应该是:
.panel:first:child.panel height{height:500px;}
我已经尝试过这样做,但这里我使用的是sass,所以我想我需要使用&:first child,但这不起作用。你是否尝试在面板父面板的第一个面板标题中设置秒表的样式?我有点困惑。现在看你的加价,你的选择对我来说没有意义。
  div .panel-height {
    &:first-child {
        height: 500px;
    }
  }