“URL latar belakang linier-gradien” Kode Jawaban

Latar belakang dengan gambar dan gradien

body {
  background: #eb01a5;
  background-image: url("IMAGE_URL"); /* fallback */
  background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531); /* W3C */
}
Innocent Ibis

Gambar latar belakang dengan CSS gradien

.background_img {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2)), url(../Image/bg.jpg);
    /* background-image: url(../Image/bg.jpg); */
    width: 100%;
    height: auto;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}
Dangerous Duck

gambar latar belakang gradien linier css

background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
abdullah

URL latar belakang linier-gradien

  body {
    background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), linear-gradient(red, yellow);
    background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), -webkit-gradient(linear, left top, left bottom, from(red), to(yellow));
    background-image: url("http://www.skrenta.com/images/stackoverflow.jpg"), -moz-linear-gradient(top, red, yellow);
  }
Busy Butterfly

Jawaban yang mirip dengan “URL latar belakang linier-gradien”

Pertanyaan yang mirip dengan “URL latar belakang linier-gradien”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya