H5 38 - 배경 이미지와 삽입 이미지의 차이점

4681 단어
DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>38-           title>
    <style>
        div{
            /*width: 150px;*/
            /*height: 170px;*/
            width: 300px;
            height: 300px;
            background-color: red;
        }
        .box1{
            background-image: url(images/girl.jpg);
            background-repeat:no-repeat;
            background-position: right bottom;
        }
    style>
head>
<body>

<div class="box1">    div>
<div class="box2">
    <img src="images/girl.jpg" alt="">
        
div>
body>
html>

 
전재 대상:https://www.cnblogs.com/ljcgood66/p/6580048.html

좋은 웹페이지 즐겨찾기