0
我试图将mdl与卡内的按钮一起使用,并且无法一致地在Chrome和Safari中使用它。这里的html:在Safari中未显示MDL按钮
<div class="mdl-card mdl-shadow--8dp" style="width:690px; margin:auto; padding:0px" id="myCard">
<button class="mdl-button mdl-js-button mdl-js-ripple-effect" style="height:100%; padding: 20px 0px 20px 0px;" align="center" id=myButton>
<h1 id="myText" style="font-size:160px; font-weight:300;" align="center">Button</h1>
</button>
</div>
正如书面,它在Chrome上工作,但不显示在Safari上。我可以通过删除按钮样式中的“height:100%”来获得它在Safari上的工作,但随后它会在Chrome上消失。
下面是与它是否有助于发挥小提琴:https://jsfiddle.net/shooks/80q7g7tq/11/
任何帮助将非常感激。我是网络开发新手,很抱歉,如果这很简单。