访问 Polymer 元素 CSS 属性 - paper-input
Accessing Polymer element CSS properties - paper-input
是否有 CSS 的方法可以为 paper-input
设置 CSS 以隐藏标签?
我想删除标签出现的空白 space。
开发者工具显示以下区域属性...
<vaadin-grid-column>
<template class="header">
<div class="horizontal layout cell">
<label for="keyFilter" class="cell">Key</label>
<vaadin-grid-filter class="cell" id="keyFilter" path="key" value="[[_filterKey]]">
<paper-input style="" slot="filter" placeholder="Search" value="{{_filterKey::input}}" focus-target></paper-input>
</vaadin-grid-filter>
</div>
</template>
<template class="cell">[[item.key]]</template>
</vaadin-grid-column>
您不需要 css
即可。只需在 paper-input
元素内添加 no-label-float
。
例如:
<paper-input no-label-float placeholder="Search"></paper-input>
是否有 CSS 的方法可以为 paper-input
设置 CSS 以隐藏标签?
我想删除标签出现的空白 space。
开发者工具显示以下区域属性...
<vaadin-grid-column>
<template class="header">
<div class="horizontal layout cell">
<label for="keyFilter" class="cell">Key</label>
<vaadin-grid-filter class="cell" id="keyFilter" path="key" value="[[_filterKey]]">
<paper-input style="" slot="filter" placeholder="Search" value="{{_filterKey::input}}" focus-target></paper-input>
</vaadin-grid-filter>
</div>
</template>
<template class="cell">[[item.key]]</template>
</vaadin-grid-column>
您不需要 css
即可。只需在 paper-input
元素内添加 no-label-float
。
例如:
<paper-input no-label-float placeholder="Search"></paper-input>