简体   繁体   中英

Header Size Issues

The header of my website is 1300px width. A scrollbar appears at the bottom, allowing me to scroll over the image (because the header size it's bigger than my screen size).

Is there any code where I can delete that scrollbar and show the header image that my screen allows to show? I don't know If you understand what I mean...

The above comment using overflow:hidden is correct.

However, from you description it sounds like the image is not a background image added by CSS, but a live image using an tag. If that's the case you have a couple options:

  1. Set the width of the image to 100% and the height to "auto" (using CSS of course)
  2. Set the image to be the background image of the header and size from there.

I could keep going but as the commenter above said, without code etc to look at we're forced to totally guess what you're really trying to accomplish.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM