【发布时间】:2020-05-29 06:02:05
【问题描述】:
我想设置一个圆形按钮,中间有一个离子图标。
我有类似的东西:
button {
color: white;
&.button-rounded {
display: block;
width: 30px;
height: 30px;
line-height: 30px;
border: 2px solid white;
border-radius: 50%;
color: white;
text-align: center;
text-decoration: none;
font-size: 10px;
font-weight: bold;
}
}
还有html:
<button class="button button-clear icon ion-home button-rounded"></button>
但结果是这样的:
有什么帮助吗?
【问题讨论】:
-
你能用它创建一个 Codepen.io 演示吗?
-
真实的是我之前从未使用过 Codepen.io...:-(
-
没问题,您只需通过演示复制您的问题。你可以在这里使用 sn-p 或 JSfiddle 或任何对你来说更容易的东西。
-
不使用 sass:codepen.io/anon/pen/NGpGPg
标签: css sass ionic-framework