我在Angular Material中有输入元素:
<md-input-container>
<input type="text" mdInput placeholder="">
</md-input-container>
Run Code Online (Sandbox Code Playgroud)
当输入具有焦点时,它显示下划线.如何隐藏或删除?
我似乎需要设置null
的underlineRef
?
标准输入为:
<input type="number" placeholder="Hours">
Run Code Online (Sandbox Code Playgroud)
Angular Material Design中有什么东西吗?
我使用Angular最新版本
我尝试过这个,但它只是简单的输入:
<md-input-container>
<input mdInput type="number" placeholder="Favorite food" value="Sushi">
</md-input-container>
Run Code Online (Sandbox Code Playgroud)
应该是 < md-input-container input="number">
?ot input type="number">
?
我使用新的Angular材料.此代码生成具有两列的网格:
<md-grid-list cols="2" rowHeight="10">
<md-grid-tile></md-grid-tile>
<md-grid-tile></md-grid-tile>
</md-grid-list>
Run Code Online (Sandbox Code Playgroud)
如何将20%宽度设置为第一列并将80%重新设置为秒?
我在新的 Angular 2 中使用 Material Design。我将它连接到 app.module,如下所示:
import {MdButtonModule, MdCheckboxModule} from '@angular/material';
import {MdGridListModule, MdCardModule} from '@angular/material';
@NgModule({
imports: [
MdButtonModule,
MdCheckboxModule,
MdGridListModule,
MdCardModule
],
Run Code Online (Sandbox Code Playgroud)
加载页面时,我在控制台中收到错误消息:
VM1967 vendor.bundle.js:63286 Uncaught Error: Template parse errors:
'md-grid-tile' is not a known element:
1. If 'md-grid-tile' is an Angular component, then verify that it is part of this module.
2. If 'md-grid-tile' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
<md-grid-list cols="7" rowHeight="2" id="weekly_schedule"> …
Run Code Online (Sandbox Code Playgroud) 我使用来自 Angular Material 的 Grid。
如何md-grid-tile
在 Angular Material 中设置自定义高度?我只需要对集合中的某些字段执行此操作。
我尝试使用 CSS 样式执行此操作并将其设置为height="100px"
.
当我启动系统时,我看到黑色显示屏并显示消息:
/dev/sda1: clean....blocks
Run Code Online (Sandbox Code Playgroud)
如何跳过这一步并运行Ubuntu?检查500GB硬盘需要3个多小时
我在Angular中有Datepicker元素.它是Material Design的标准组件.
当我尝试为此元素设置自己的样式时,它不适用于属性!important
.
如何解决它,以及如何更改默认组件的样式?
代码示例:
.mat-datepicker-toggle {
margin-right: 10px !important;
}
Run Code Online (Sandbox Code Playgroud)