简体   繁体   English

角材料md-select可以将背景切到内容边缘吗?

[英]Angular-material md-select cuts off background to edge of content?

I updated to angular-material 0.9 and now when I open md-select it cuts off the background to the edge of the content. 我将角度材料更新为0.9,现在当我打开md-select时,它将背景切到内容的边缘。 Is there some way to avoid this? 有什么办法可以避免这种情况?

http://codepen.io/anon/pen/yNOypa http://codepen.io/anon/pen/yNOypa

<div class="background">
<div layout="column" layout-align="center center" flex>
  <md-select placeholder="Pick">
    <md-option value="1">One</md-option>
    <md-option value="2">Two</md-option>
  </md-select>
    </div>
  <p>The background ends at the content when md-select is open</p>
</div>

Try with changing 尝试改变

 height:100%;

to

height:100vh;

A similar question: Make div 100% height of browser window 一个类似的问题: 使div浏览器窗口的高度为100%

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM