.keyMargin { width: 100%; margin-bottom: 10px; text-align: center; .mat-form-field { width: 100%; } //上传CAD弹窗 inputfile .uploadBackGround { width: 125px; padding: 0 25px; height: 30px; line-height: 30px; position: relative; cursor: pointer; color: #0275e7; font-size: 14px; background: #fafafa; border: 1px solid #0275e7; border-radius: 5px; overflow: hidden; display: inline-block; } .uploadBackGround input { position: absolute; width: 100%; right: 0; top: 0; opacity: 0; cursor: pointer } }