English 中文(简体)
如何使国际小组的宽度用尾窗填满整个屏幕?
原标题:How to make the width of an IMG fill the whole screen with tailwind css?

因此,我刚刚开始使用尾窗,一开始就开始编码,一面试图使我的头盔填满整个屏幕,但最后在正确目标上却稍有差距(一面知道在屏幕上看它是否明显,一只能够做得更好):

“

这里撰写的几篇文章:

export function Header(){
return(
    <div>
        <img src="/headerImg.png" alt="logo" className="w-screen h-21"/>
    </div>
)}

是否在安定或其他一些指挥系统方面取得了一些进展,而不是会更好安定的盘点?

问题回答

有时看上去的宽度会略低于100%,取决于浏览器等。 您可以尝试并看w-full?

export function Header(){
return(
    <div>
        <img src="/headerImg.png" alt="logo" className="w-full h-21"/>
    </div>
)}

如果你仍然有这一问题,我建议设法打消你的ty和形象。

  1. make sure the image itself does not have a small gap
  2. inspect all of your css/styles to check if there is any global padding, margin or image styling being applied(most projects such as next come with default body padding etc that can cause this)




相关问题
select multiple files in file upload in php? [duplicate]

Possible Duplicate: How to select multiple files for upload? i know that php doesn t allow you to select multiple files to upload in one box. is there a work around or do you have to learn ...

Connecting Actionscript 3.0 with a C++ backend?

I am curious to know if there is a way of connecting a flash front-end to a C++ driven backend? I m not currently working on a project that involves this, but I found out about an application used in ...

PHP searchable catalog design

I m working on a PHP Real Estate catalog. I am working on the search part right now and I m having trouble with the logic. Should the default view show all items in the catalog or the search page? ...

jquery image preview that work on ajax embedded image links?

there are various good jquery image preview plugins out there. however, all of the ones i ve tested havent worked on image links that are embedded in the DOM with ajax. i have tested use jquery live ...

Why should I use XFN in my HTML?

What is the benefit of using XFN (XHTML Friends Network)? I ve seen this on multiple blogs and social networking sites but I don t really understand why it s useful. Other than being able to style ...

The modern way to clear floated content?

What s the modern way to clear floated content these days? There s the "recent" modern way of adding a ".clearfix" on the parent element to clear the contained floats and that would work great. In ...

create a "show up" window when you click register?

im a backend programmer who wants to have a window that appears in front of the current window when clicking "register". so that you dont have to redirect to another page. i think u guys know what i ...

热门标签