作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在对 polymer 1.0 元素进行简单的测试。在纸张标题面板测试中,内容区域元素不可见或在纸张标题 div 上移动。演示是here代码如下。为什么内容文本不显示?
<!DOCTYPE html>
<html>
<head>
<title>paper-header-panel demo</title>
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="bower_components/paper-header-panel/paper-header-panel.html">
<link rel="import" href="bower_components/iron-flex-layout/iron-flex-layout.html">
</head>
<body class="fullbleed layout vertical" style="height: 100%">
<paper-header-panel mode="waterfall" class="flex">
<div class="paper-header" style="height: 60px;">I am the header</div>
<div class="content fit">I am the content</div>
</paper-header-panel>
</body>
</html>
最佳答案
这可能是你的问题。
<link rel="import" href="bower_components/iron-flex-layout/iron-flex-layout.html">
尝试将其更改为
<link rel="import" href="bower_components/iron-flex-layout/classes/iron-flex-layout.html">
前一个仅包含布局混合(实际上是推荐的),而后者包含您似乎正在使用的布局类(以及 /deep/
选择器)。
关于css - 纸张标题面板内容 div 行为异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30732918/
我正在尝试在我的 1.0 polymer 元素之一中实现纸张 slider ... 我得到的错误是: Uncaught TypeError: this.has
我还是 Vaadin 的新手,我正在尝试使用 Vaadin 14 实现 @polymenr/paper-slider 组件。 我已经下载了项目https://github.com/berndhopp/
我还是 Vaadin 的新手,我正在尝试使用 Vaadin 14 实现 @polymenr/paper-slider 组件。 我已经下载了项目https://github.com/berndhopp/
我正在尝试像这样实现页面 curl : 我遵循了这个例子:http://codepen.io/anon/pen/fpjoa 如果我创建新的 PHP 和 CSS 文件并从上面的链接复制粘贴代码,结果是正
我是一名优秀的程序员,十分优秀!