로그인

검색

WEB
2017.07.08 12:31

탭메뉴

조회 수 209 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

http://webruden.tistory.com/98

 

 

<!--
*	UI 개발
*	Tab Menu 제작
*	제작자 : 박경두
*	최종 수정일 : 2016-07-21
*
*
*
*
-->
<!DOCTYPE html>
<html lang="ko">
<head>
	<meta charset="UTF-8">
	<title>tab example</title>
	<style>
		#container {
			width:960px;
			margin:0 auto;
			text-align:center;
		}
		.tab {
			list-style: none;
			margin: 0;
			padding: 0;
			overflow: hidden;
		}
		/* Float the list items side by side */
		.tab li {
			float: left;
		}
		/* Style the links inside the list items */
		.tab li a {
			display: inline-block;
			color: #000;
			text-align: center;
			text-decoration: none;
			padding: 14px 16px;
			font-size: 17px;
			transition:0.3s;
		}
		/* Style the tab content */
		.tabcontent {
			display: none;
			background-color:rgb(0,154,200);
			padding: 6px 12px;
			color:#fff;
		}
		ul.tab li.current{
			background-color: rgb(0,154,200);
			color: #222;
		}
		.tabcontent.current {
			display: block;
		}
	</style>
	<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
	<div id="container">
		<h2>How to develop a tab menu with jQuery</h2>
		<p>제작자 : 박경두</p>
		<p>고려대학교 경영정보학과</p>
		<p>멋쟁이 사자처럼 4기</p>
		<ul class="tab">
			<li class="current" data-tab="tab1"><a href="#">About</a></li>
			<li data-tab="tab2"><a href="#">Portfolio</a></li>
			<li data-tab="tab3"><a href="#">Contact</a></li>
			<li data-tab="tab4"><a href="#">Travel</a></li>
		</ul>

		<div id="tab1" class="tabcontent current">
			<h3>About</h3>
			<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
		</div>

		<div id="tab2" class="tabcontent">
			<h3>Portfolio</h3>
			<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
		</div>

		<div id="tab3" class="tabcontent">
			<h3>Contact</h3>
			<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
		</div>

		<div id="tab4" class="tabcontent">
			<h3>Travel</h3>
			<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
		</div>
	</div>

	<script>
		$(function() {
			$('ul.tab li').click(function() {
				var activeTab = $(this).attr('data-tab');
				$('ul.tab li').removeClass('current');
				$('.tabcontent').removeClass('current');
				$(this).addClass('current');
				$('#' + activeTab).addClass('current');
			})
		});
	</script>
</body>
</html>

Who's 꽃지닷컴

profile

Respect yourself and others will respect you

- 창의적 사고를 하자!

- 소규모 웹사이트 제작 및 수정 (24시간 항시대기)

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 XE/Rhmix 오라클 클라우드 - 우분투(Ubuntu) php7.3에서 php7.4로 업그레이드 하기 꽃지닷컴 2022.03.17 88
공지 XE/Rhmix 라이믹스,XE 외부페이지 php 보안관련 꽃지닷컴 2022.03.16 90
공지 XE/Rhmix PHP PDO CRUD with ajax jQuery and Bootstrap 회원관리(사진등록) file 꽃지닷컴 2021.03.19 668
공지 XE/Rhmix soengsouy- PHPCRUD ALL FILE file 꽃지닷컴 2021.03.19 130
공지 XE/Rhmix [구매하자] CRUD Application with PHP, PDO, and MySQL secret 꽃지닷컴 2021.03.19 0
공지 XE/Rhmix 라이믹스 사이트 모음 꽃지닷컴 2021.03.02 266
공지 XE/Rhmix XE 참고 사이트 모음 secret 꽃지닷컴 2017.04.13 134
185 DESIGN PPT 디자인 - 도형 병합 꽃지닷컴 2021.04.08 41
184 영상제작 파워포인트로 영상만들기 꽃지닷컴 2021.04.08 39
183 XE/Rhmix 임베드파싱모듈 꽃지닷컴 2021.04.07 132
182 PC 노트북 액정에 세로줄이 같을 때 꽃지닷컴 2021.04.01 362
181 XE/Rhmix 라이믹스에서 짧은주소 사용하기 꽃지닷컴 2021.03.26 509
180 XE/Rhmix 카카오톡 pc, 모바일 공유 완료 file 꽃지닷컴 2021.03.26 82
179 WEB Drag & Drop reorder 드래그앤드롭으로 이미지 리스트 정렬하기, 배너 드래그앤드롭 꽃지닷컴 2021.03.19 681
178 XE/Rhmix xelayout-bezel-rhythm 등 버튼 높이 css 강제적용부분 삭제하기 file 꽃지닷컴 2021.03.19 67
177 XE/Rhmix 합창단 xe > rhymix 이전 file 꽃지닷컴 2021.03.19 187
176 XE/Rhmix 합창단 php 5.5 to 7.3 변경시 오류 꽃지닷컴 2021.03.19 43
175 XE/Rhmix 베젤(bezel)레이아웃 구글폰트 오류 수정하기 꽃지닷컴 2021.03.18 46
174 XE/Rhmix 스케치북에 카카오톡 PC에서도 공유버튼 나타나도록 secret 꽃지닷컴 2021.03.18 0
173 XE/Rhmix Mixed Content: The page at 오류 해결법 - http>https secret 꽃지닷컴 2021.03.18 0
172 WEB [펌] 보안 ssl 의무 꽃지닷컴 2021.03.17 11
171 WEB SSL - Sectigo PositiveSSL 해외에서 구매하여 카페24에 설치하기 file 꽃지닷컴 2021.03.17 179
170 WORDPRESS 슬라이딩 사이드바 플러그인 꽃지닷컴 2021.03.06 19
169 WORDPRESS flyout-trigger, floting menu 꽃지닷컴 2021.03.04 165
168 XE/Rhmix XE Profiler - 불필요한 트리거 삭제 꽃지닷컴 2021.03.04 19
167 WEB 구글 GA4 적용하기 꽃지닷컴 2021.03.04 112
166 개발자 부족현상, 연봉 치솟아 꽃지닷컴 2021.02.23 47
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 14 Next
/ 14