简体   繁体   中英

How can I control my image in html using css style?

I've tried to insert an image in my html page then i had a problem which is once i scroll down, the image covers the nav bar and the logo of my page.

Can you please share what css and html you wrote? Not sure what kind of effect you would like to achieve.

  1. If you wanna your image simply below other elements:

    img{ z-index:-1; }

  2. If you have other combination to go for, play with the properties: positions and display: CSS Layout - The position Property CSS Display

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