IFE HTML9

In this example below you will see how to do a IFE HTML9 with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by 1206189299, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 1206189299 ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>IFE HTML9</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  
	<header class="head">
		<div class="logo">
			<img src="images/1.jpg" />
			<span>新世界</span>
   		</div>
   			<ul class="nav_list">
   				<li><a href="">首页</a></li>
   				<li><a href="">最新活动</a></li>
   				<li><a href="">项目介绍</a></li>
   				<li><a href="">爱心社区</a></li>
   				<li><a href="">关于我们</a></li>
   				<li><a href="">登录</a></li>
   			</ul>
   </header>
   <div class="container">
   	  <section class="sec1">
   	  	<div class="wrap_life">
   	  			<h1>Time of new life</h1> 
   	  			<p>新时代,年轻的人们让我们一起<br>体验新生活,享受新生活</p>
   	  			<button type="button">开始体验</button>
   	  	</div>
			<ul class="life_list">
   	  			<li class="life_item">
   	  				<div><img src="images/8.jpg"></div>
   	  				<div>打造全新世界观,让你重新爱上你的生活</div>
   	  			</li>
   	  			<li class="life_item">
   	  				<div><img src="images/9.jpg"></div>
   	  				<div>丰富多彩的公益活动,发挥新世界的主人公意识</div>
   	  			</li>
   	  			<li class="life_item">
   	  				<div><img src="images/10.jpg"></div>
   	  				<div>时尚的新理念,超前体验未知的生活</div>
   	  			</li>
   	  			<li class="life_item">
   	  				<div><img src="images/11.jpg"></div>
   	  				<div>完善的培训机制,培养你全新的世界观</div>
   	  			</li>
   	  		</ul>
   	  </section>
   	  <section class="sec2">
   	  	<div class="new_world">
   	  		<img src="images/12.jpg">
   	  		<p>
   	  			关于新世界,你不知道的还有什么?
   	  		</p>
   	  	</div>
   	  	<div class="wrap_location">
   	  		<p>查找新世界<span>城</span>市活动信息</p>
   	  		<p>每个城市有不同的活动信息,请自主查询您需要了解的城市!</p>
   	  		<ul class="location_list">
   	  			<li>
   	  			<fieldset class="radio-container">
   	  				<div class="radio-options">
   	  					<div class="toggle">first</div>
                         <ul>
                         	<li>
                         		<input type="radio" id="choice1"  name="country"  value="choice">
                         		<lable for="choice1">china</lable>
                         	</li>
                         	<li>
                         		<input type="radio" id="choice2" name="country"  value="choice">
                         		<lable for="choice2">America</lable>
                         	</li>
                         	<li>
                         		<input type="radio" id="choice3"  name="country" value="choice">
                         		<lable for="choice3">England</lable>
                         	</li>
                         	<li>
                         		<input type="radio" id="choice4"  name="country" value="choice">
                         		<lable for="choice4">Japan</lable>
                         	</li>
                         </ul>
   	  				</div>
   	  			</fieldset>
   	  			</li>
   	  			<li>

   	  			</li>
   	  			<li>
   	  			</li>
   	  			<li>
   	  				<button type="button">search</button>
   	  			</li>
   	  		</ul>
   	  	</div>
   	  	<div>
   	  		<ul>
   	  			<li></li>
   	  			<li></li>
   	  			<li></li>
   	  			<li></li>
   	  		</ul>
   	  	</div>
   	  </section>
   	  <section>
   	  	<div>
   	  		<div></div>
   	  		<div></div>
   	  	</div>
   	  	<div>
   	  		<div></div>
   	  		<div></div>
   	  		<div></div>
   	  	</div>
   	  </section>
   	  <section>
   	  	<div>
   	  		<h1></h1>
   	  		<p></p>
   	  	</div>
   	  	<div></div>
   	  </section>
   </div>
   <footer>
   	
   </footer>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/1206189299/ife-html9-GWrMaP */
body, ul,p,h1 {
	margin: 0;
	padding: 0;
}
ul {
	list-style: none;
}
a {
	text-decoration: none;
}
.head {
	box-sizing: border-box;
	min-width: 1255px;
	padding: 10px 57px 0 57px;
	height: 60px;
}
.logo {
	float: left;
	font-size: 20px;
	font-weight: bold;
	height: 31px;
	line-height: 31px;
}
.logo >span {
	vertical-align: top;
}
.nav_list {
	float: right;
}
.nav_list > li {
	float: left;
	height: 46px;
	padding: 0 15px;
	font-size: 15px;
}
.nav_list > li:hover {
	border-bottom: 4px solid red;
	color: red;
}
.nav_list a{
	color: inherit;
}
/* __________________container______________________________ */
.container {
	width: 1253px;
	margin: 0 auto;
	background: rgba(147,147,147,.5);
}
.wrap_life {
	background: url(images/07.jpg);
	width: 100%;
	height: 692px;
	box-sizing: border-box;
	padding-top: 220px;
	padding-left: 115px;
	font-family: "微软雅黑";
}
.wrap_life > h1{
  font-size: 60px;
  color: white;
  font-family: "微软雅黑";
  padding-bottom: 10px;
}
.wrap_life > p{
	color: white;
	font-size: 21px;
	font-family: "微软雅黑";
	line-height: 29px;
	padding-bottom: 60px;
}
.wrap_life > button{
	color: white;
	font-size: 30px;
	background: rgb(231,79,77);
	width: 330px;
	height: 65px;
	border: none;
}
.life_list{
	overflow: hidden;
	width: 100%;
	background: white;
	padding-bottom: 60px;
}
.life_item{
	float: left;
	width: 25%
}
.life_item > div:nth-child(1){
	height: 128px;
	position: relative;
}
.life_item > div:nth-child(1) > img{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.life_item > div:nth-child(2){
	border-right: 2px solid gray;
	height: 58px;
	padding: 0 25%;
	font-size: 14px;
}
/* ___________________________________sec2_________________________ */
.sec2{
	height:700px;
}
.new_world{
height: 365px;
box-sizing: border-box;
padding-top: 88px;
background: rgb(237,236,236);
text-align: center;
}
.new_world > img{

}
.new_world > p{
	padding-top: 30px;
	font-size: 54px;
    color: gray;
    font-family: "黑体";
}
.wrap_location{
	height: 340px;
	background: url(images/13.jpg);
	text-align: center;
	color: white;
}
.wrap_location > p:nth-child(1){
    font-size: 21px;
    line-height: 21px;
    padding-top: 50px;
}
.wrap_location > p:nth-child(1) >span{
	padding-bottom: 8px;
	border-bottom: 2px solid white;
}
.wrap_location > p:nth-child(2){
	font-size: 12px;
	line-height: 31px;
	padding-top: 25px;
	padding-bottom: 50px;
}
.location_list{
	width: 100%;
	overflow: hidden;
}
.location_list > li{
	width: 25%;
	float: left;
}
.location_list button{
	width: 236px;
	height: 37px;
	background-color: rgb(190,78,72);
	border: none;
	color: white;
}
.radio-container{
	position: relative;
	height: 4em;
	
}
.radio-container:hover {
  z-index: 9999;
}
.radio-options {
  position: absolute;
  max-height: 3em;
  width: 100%;
 /*  overflow: hidde ;*/
  transition: 0.7s;
  background: red;
}
.radio-options:hover {
  max-height: 100em; 
}
.radio-options .toggle {
  position: relative;
  cursor: pointer;
  padding: 0.75em;
  background: darkgreen;
  border-radius: 10px;
  z-index: 1; 
}
.radio-options li {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100%; 
}
 .radio-options label {
  display: block;
  opacity: 0;
}
.radio-options input {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 3em;
  opacity: 0;
  z-index:1;
  cursor: pointer; 
}
.radio-options:hover li {
  position: relative;
}
.radio-options:hover label {
  /* opacity: 1; */
  transition: 0.5s; 
}

Comments