<form clrForm>
<clr-input-container>
<label>Field 1 label</label>
<input clrInput type="text" [(ngModel)]="model" name="example" style="width:100%" />
</clr-input-container>
<clr-input-container>
<label>Field 2 label</label>
<input clrInput type="text" [(ngModel)]="model" name="example" style="width:100%" />
</clr-input-container>
</form>
Run Code Online (Sandbox Code Playgroud)
上面是来自清晰表单的代码示例,我在表单中使用角度分量,问题是当我使用没有角度分量的表单时,当我给出 style="100%" 时,输入宽度为 100%,但如果我使用同样的东西使用角度分量,尽管我给了 style="100%",但输入字段没有达到 100%。请让我知道在使用角度分量作为清晰度形式时如何将宽度设置为 100% 的原因。