css - 如何处理由于该 div 的绝对定位而未应用的聚合物柔性布局

标签 css polymer-1.0

HTML

<div class="layout horizontal flex around-justified typeArea">
   <input is="iron-input" class="typeBox flex-1" >
   <paper-icon-button icon="polymer" class="pink"></paper-icon-button>
</div>

CSS

 .typeArea {
                position: absolute;
                bottom: 25px;
                padding: 10px;
            }

   .typeBox {
                padding: 8px;
            }

The flex effects are not visible due to absolute positioning. I need the div at the very bottom.

最佳答案

也许你冷尝试使用iron-flex-layout-class来实现绝对定位。

bower_components\iron-flex-layout\iron-flex-layout-classes.html

<dom-module id="iron-positioning">

  /* fixed position */
  .fixed-bottom,
  .fixed-left,
  .fixed-right,
  .fixed-top {
    position: fixed;
  }

关于css - 如何处理由于该 div 的绝对定位而未应用的聚合物柔性布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42305970/

相关文章:

html - 使用 firefox 时右边距有空白

javascript - 如何处理 Bootstrap 工具提示中的长文本值?

polymer - 如何使用 Polymer 1.x 将 HTML 注入(inject)模板?

javascript - polymer 1.x : Defining "google" import

javascript - 使用iron-ajax (Google Polymer) 上传文件

javascript - Google Maps API - 自动居中和自动缩放

html - 尝试在悬停时更改图像时背景网址不起作用

html - 无法在 CSS 文件中获取 @media 查询设置以在适用平台上执行

node.js - CORS 预检请求后 302 重定向到 nodejs 服务器

css - 如何在 Polymer 1.0 中设置 paper-textarea 的宽度?