flex가 사파리에선 안되요..ㅠㅠ
본문
<!DOCTYPE> <-- 이렇게 해도, 없애도.. 안되요..
<html>
<head>
  <meta charset="UTF-8">
  <title>Flex Layout</title>
  <style>
    .flex{display:flex; width:100%; background:#000;}
    .flex>div{width:100px;height:100px;border:1px solid #ff0000; }
    .box1{background:#ffa;}
    .box2{background:#faa;}
    .box3{background:#afa;}
    .box4{background:#aaf;}
  </style>
</head>
<body>
  <div class="flex">
    <div class="box1">box1</div>
    <div class="box2">box2</div>
    <div class="box3">box3</div>
    <div class="box4">box4</div>
  </div>
</body>
</html>
아래는 크롬에서 잘 적용된거구요.
이거는 사파리에서 적용이 안된 모습이에요..ㅠ

답변 2
display: -webkit-box;추가하세요!
.flex{display:flex;display: -webkit-box; width:100%; background:#000;}
div 에서 flex : 1 도 추가요
                답변을 작성하시기 전에 로그인 해주세요.
            
    
