小编ddg*_*ddg的帖子

如何内联href?

我有一些看起来像这样的东西:

<ContentBlock
    className={'text-gray-300 mt-4'}
>
    Blah blah blah, blah BLAH, blah
    <a href="foo.bar" 
       className={'underline text-gray-200 hover:text-blue-300'}>
          foo bar
    </a>
</ContentBlock>
Run Code Online (Sandbox Code Playgroud)

显示时,href 链接始终单独换行。我怎样才能使它保持“附加”到前面的文本?

html css href

1
推荐指数
1
解决办法
1792
查看次数

标签 统计

css ×1

href ×1

html ×1