我创建了一个注册表单,作为我学习Angular和Nodejs的一部分.我的表单看起来很宽,但没关系,但是这个表单上的字段看起来很窄或很薄.我试图将Width:100%直接设置为容器标签但不起作用.
如何使用css标记为所有这些字段设置宽度:100%?
我的形式使用角度:
<mat-card>
<mat-card-header>
<mat-card-title>
<h4>Register New User</h4>
</mat-card-title>
</mat-card-header>
<mat-card-content class="register-container">
<form>
<mat-form-field>
<input matInput placeholder="E-mail" ng-model="data.email" type="email">
</mat-form-field>
<br />
<mat-form-field>
<input matInput placeholder="Password" ng-model="data.pwd" type="password">
</mat-form-field>
<br>
<mat-form-field>
<input matInput placeholder="Name" ng-model="data.name" type="text">
</mat-form-field>
<br>
<mat-form-field>
<textarea matInput ng-model="data.description" placeholder="Leave a comment"></textarea>
</mat-form-field>
</form>
</mat-card-content>
</mat-card>
Run Code Online (Sandbox Code Playgroud)
我是 NodeJs 初学者。无论如何,我想创建一个从测试开始的应用程序,比如 TDD 方法。
Mocha 和 Supertest 有什么区别?
我正在使用Visual Studio 2017并尝试在两个项目之间添加新引用,但是当我单击“添加引用...”时出现以下错误。
找不到Microsoft.VisualStudio.Shell.Interop.IVsReferenceManager服务的实例。
第一个项目是Asp.Net Core
,第二个项目是.NET Core
类库。