Mic*_*ndo 5 svelte tailwind-css
我希望结果是这样的
但这就是我得到的
用我的精简代码:
<div
style="background-image: url('{unsplash?.url}');"
class="bg-black flex items-center justify-center min-h-screen bg-cover"
>
<Authenticate />
<!-- here is my div -->
<div class="block flex absolute bottom-9 left-5 h-16 w-16">
<img src={unsplash?.author.avatar} alt={unsplash?.author.username} class="rounded-full" />
<p class="inline-block text-blank ml-2">
By <a class="inline-block" target="__blank" href={unsplash?.author.url}
>{unsplash?.author.username}</a
>
</p>
<p class="inline-block text-black">
Find similar pictures on <a class="inline-block" target="__blank" href="http://unsplash.com"
>Unsplash</a
>
</p>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我使用了内联块,但不起作用
| 归档时间: |
|
| 查看次数: |
14146 次 |
| 最近记录: |