gpt4 book ai didi

css - 带图标的 Material Design lite (MDL) 按钮

转载 作者:行者123 更新时间:2023-12-02 09:49:13 24 4
gpt4 key购买 nike

在MDL中有两个选项: 普通按钮:

    <button className="mdl-button mdl-js-button">
Continue with Facebook
</button>

和图标按钮:

    <button className="mdl-button mdl-js-button mdl-button--icon">
<i className="material-icons">mood</i>
</button>

如何才能在最左侧有一个带有图标的按钮,即类似

    <button className="mdl-button mdl-js-button mdl-button--raised mdl-button--icon-left">
<i className="material-icons">mood</i> Continue with Facebook
</button>

最佳答案

这个怎么样:

<button class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect">
<i class="material-icons">add_shopping_cart</i>Add to shopping cart
</button>

enter image description here

Codepen

关于css - 带图标的 Material Design lite (MDL) 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33126972/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com