ghasem110deh
پنج شنبه 28 دی 1396, 18:53 عصر
سلام به همه :-)
دوستان من با کد زیر خواستم یه عکس رو توی بکگراند صفحه اصلی سایت نمایش بدم اما عکس رو نشون نمیده !
این html :
< <title>FULL IMAGE BK</title> <link rel="stylesheet" type="text/css" href="css/card_style.css"></head><body> <div class="hero-image"> <div class="hero-text"> <form action="/review" class="review-form" enctype="text/plain" method="get"> <div class="home-banner"> <div class="review-box"> <h1> متن </h1> <p> متن دوم <br /> متن سوم </p> <div style="position: relative;"> <div class="form-wrapper"> <input type="text" name="site" id="site" placeholder="your name ..." /> </div> <button type="submit"> جستجو </button> </div> </div> </div> </form> </div> </div> </body>
اینم کد CSS :
.hero-image { background-image: url('/images/site_bk.jpg');
background-repeat: no-repeat;
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
دوستان من با کد زیر خواستم یه عکس رو توی بکگراند صفحه اصلی سایت نمایش بدم اما عکس رو نشون نمیده !
این html :
< <title>FULL IMAGE BK</title> <link rel="stylesheet" type="text/css" href="css/card_style.css"></head><body> <div class="hero-image"> <div class="hero-text"> <form action="/review" class="review-form" enctype="text/plain" method="get"> <div class="home-banner"> <div class="review-box"> <h1> متن </h1> <p> متن دوم <br /> متن سوم </p> <div style="position: relative;"> <div class="form-wrapper"> <input type="text" name="site" id="site" placeholder="your name ..." /> </div> <button type="submit"> جستجو </button> </div> </div> </div> </form> </div> </div> </body>
اینم کد CSS :
.hero-image { background-image: url('/images/site_bk.jpg');
background-repeat: no-repeat;
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}