使用自定义å•é€‰æŒ‰é’®å°†æ ‡ç­¾åž‚直对é½

时间:2020-06-15 10:24:24

标签: html css angular

外观:

enter image description here

我希望标签具有动æ€å°ºå¯¸ï¼Œä¾‹å¦‚“éžå¸¸ä¸èˆ’æœâ€çš„更改

    Very
  Strongly
uncofortable
  [input]

在CSSæ–¹é¢ï¼Œæˆ‘真的没有ç»éªŒ

<div class="w-50 d-flex justify-content-between answer-box">
    <div *ngFor="let label of labels; index as id" class="text-center question-label">
        <span class="mr-2">{{label}}</span>
        <div class="radio">
            <label style="font-size: 2.5em">
                <input type="radio" [value]="id+1" formControlName="value">
                <span class="cr"><i class="cr-icon fa fa-check"></i></span>
            </label>
        </div>
    </div>
</div>

当我设法以æŸç§æ–¹å¼æ‹†åˆ†æ–‡æœ¬æ—¶ï¼Œå¦‚果没有标签,则å¤é€‰æ¡†å¤„于ä¸åŒçš„高度。

1 个答案:

答案 0 :(得分:0)

å°è¯•è¿™æ ·çš„事情:

html:

<table class="cBox">
  <tr>
    <td width="10px" >Very Strongly uncofortable</td>
    <td width="20px">Uncertain </td>
    <td width="20px">No Answer </td>
  </tr>
  <tr>
    <td><input type="checkbox"/> </td>
    <td><input type="checkbox" /> </td>
    <td><input type="checkbox"/> </td>
  </tr>
</table>

CSS:

.cBox {
  text-align: center;
  padding: 5px;
}