【发布时间】:2022-01-18 16:48:39
【问题描述】:
我有这个
<button class="jumpButton">"Click me" <svg class="arrowsvg"><path fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M7 10L12 15 17 10" aria-hidden="true"></path><svg><button>
我想更改“点击我”的 CSS,但更改也会更改 SVG。
.jumpButton #text {
}
这行不通。我无法编辑 HTML,我想将“点击我”放在 SVG 的右侧。我也无法访问 Javascript。
【问题讨论】:
-
你想应用什么 CSS?
-
@TemaniAfif 我想将“点击我”放在 SVG 的右侧,但现在,文本首先出现,然后是 SVG。
标签: css button text position css-position