[英]How to add icon in a button in framework7?
我是framework7的初學者。 我正在嘗試在按鈕元素中插入一個圖標。 我想設置標簽左側的圖標。 我已經部分達到了我的目的。
<a class="button button-fill button-round button-small color- gray" href="#" id="add_field_button" style="float: left;"><i class="material-icons ">add_circles</i>Add</a>
我在這里放了一個演示。
https://jsfiddle.net/ad72krqv/1/
先感謝您
添加這個 CSS
.button {
display: flex;
justify-content: center;
align-items: center;
}
.button > i {
width: 24px;
margin-right: 5px;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.