국비 41일차_2

강지수·2024년 2월 14일
0

국비교육

목록 보기
76/97
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="../js/jquery-3.7.0.min.js"></script>
<script src="../js/jquery.bpopup.min.js"></script>
<title>kjs</title>
<style>
.Pstyle{
   opacity: 0;
   display: none;

   position: relative;
   left: 100px;
   
   border: 5px solid #fff;
   padding: 20px;
   background-color: #550;
   width: 300px;
   height: 530px;
   
}
.b-close{
   position: absolute;
   right: 5px;
   top: 5px;
   padding: 0px;
   display: inline-block;
   cursor: pointer;
}
#popup{
   position: relative;
}
#imgidx{
   top: 50px;
   position: absolute;
}
img{
   position: absolute;
   top: 40px;
}
</style>

<script>
function goPopup() {
	$("#popup").bPopup();
}
</script>
</head>
<body>
	<h3>layerpopup.jsp</h3>
	<input type="button" value="클릭팝업" onclick="goPopup()" />
	<div id="popup"class="Pstyle">
		<span class="b-close">close</span>
		<img src="../img/img1.png" alt="" />
		<div id="imgidx" class="content" style="height:auto;width:auto">
		레이어 팝업 완성 <br /> 팝업 크기는 div 조정
		</div>
	</div>
</body>
</html>

팝업 광고 느낌


원래의 파일이 master 에 있는데, 다른 branch 에서 작업을 막 한 후 merge 하려 하면 위와 같이 뜬다.


profile
개발자 준비의 준비준비중..

0개의 댓글