안녕하세요 질문좀 드리겠습니다
빨간색 부분에요 파랑내용을 빨강색 안에다 넣고싶은데 어떻게 해야하나요
echo '<div style=" background-image: url(/images/banner.jpg);
<img src="'.G5_DATA_URL.'/content/'.$co_id.'_h" alt="">
Copy
echo '<div style=" background-image: url(/images/banner.jpg); background-position: center center; background-repeat: no-repeat; background-size: cover; height: 350px; min-height: 35em; overflow: hidden; position: relative; text-align: center; display: -webkit-flex; display: -ms-flex; display: flex; -moz-flex-direction: column; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -moz-justify-content: center; -webkit-justify-content: center; -ms-justify-content: center; justify-content: center; cursor: default;"> <img src="'.G5_DATA_URL.'/content/'.$co_id.'_h" alt=""> </div>';
|
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
2017-04-27 (목) 15:17:25
echo '<div style=" background-image: url('.G5_DATA_URL.'/content/'.$co_id.'_h);
답변에 대한 댓글 1개
초보입니다1
2017-04-27 (목) 15:29:16
답변을 작성하려면 로그인이 필요합니다.
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
height: 350px;
overflow: hidden;
position: relative;
text-align: center;
display: -webkit-flex;
display: -ms-flex;
display: flex;
-moz-flex-direction: column;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-moz-justify-content: center;
-webkit-justify-content: center;
-ms-justify-content: center;
justify-content: center;
cursor: default;">
</div>';
이렇게 넣어도 아무것도 안뜨는데 왜그런걸까요 ㅠㅠ