Personal movie website designed with DIV+CSS technology (web front-end webpage production class homework)

HTML example web page code, this example is suitable for students who are beginners in HTML. In this example, there are css style settings and div style patterns. This example is more comprehensive and helpful for students to learn. This article will introduce how to practice design by designing a personal website from scratch and converting it into code .

1. Web page introduction

1 Web page introduction : This work is the theme of student personal homepage web design, HTML+CSS layout production, web front-end final assignment, college student web design homework source code, this is a good web page production, the picture is smart, the code is simple student level, very Suitable for beginners to learn to use.

2. Webpage editing : The code of the webpage works is simple, and any HTML editing software can be used (such as: Dreamweaver, HBuilder, Vscode, Sublime, Webstorm, Text, Notepad++ and other arbitrary HTML editing software to run, modify and edit, etc.).

3. Knowledge application : In terms of technology, it mainly applies web page knowledge: Div+CSS, mouse over effects, Table, navigation bar effects, Banner, forms, secondary and tertiary pages, etc., video, audio elements, Flash, and design at the same time Knowledge points required for the Logo (source file).


1. Web page effect

insert image description here
insert image description here
insert image description here
insert image description here

2. Code display

1.HTML code

The code is as follows (example): The following only shows part of the code for reference~



 <center>
      <nav class="navbar navbar-default " role="navigation">
        <div class="container-fluid ">
          <div class="navbar-header">
            <a class="navbar-brand" href="#">电影网LOGO</a>
          </div>
          <ul class="nav navbar-nav navbar-right">
            <li>
              <a href="register.html"><span class="glyphicon glyphicon-user"></span> 注册</a>
            </li>
            <li>
              <a href="#"><span class="glyphicon glyphicon-log-in"></span> 登录</a>
            </li>
          </ul>
        </div>
      </nav>
      <div style="width: 75%; min-width: 1150px;max-width: 1320px;">
        <nav class="navbar navbar-inverse navbar-static-top " role="navigation">
          <div class="container-fluid">
            <div class="navbar-header">
              <a class="navbar-brand" href="index.html">首页</a>
            </div>
            <div>
              <ul class="nav navbar-nav">
                <li>
                  <a href="#">电影</a>
                </li>
                <li>
                  <a href="#">电视剧</a>
                </li>
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    动漫 <b class="caret"></b>
                  </a>
                  <ul class="dropdown-menu">
                    <li>
                      <a href="#">jmeter</a>
                    </li>
                    <li>
                      <a href="#">EJB</a>
                    </li>
                    <li>
                      <a href="#">Jasper Report</a>
                    </li>

                  </ul>
                </li>
                <li>
                  <a href="#">综艺</a>
                </li>
                <li>
                  <a href="#">音乐MV</a>
                </li>
                <li>
                  <a href="#">视频短片</a>
                </li>
                <li>
                  <a href="#">公开课</a>
                </li>
              </ul>
              <div class="clear">
                <form name="myForm"  onsubmit="return validateForm()" 	 class="navbar-form navbar-right"  >
                  <div class="form-group">
                    <input id="searchKey" name="fname" type="text" class="form-control" placeholder="输入电影名称...">
                  </div>
                  <button type="submit" class="btn btn-default " onclick="sear()">搜索电影</button>
                </form>
              </div>

            </div>
          </div>
          <div class="container-fluid navbar-default  ">

            <div>
              <ul class="nav navbar-nav">
                <li>
                  <a href="#">2019电影</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>
                <li>
                  <a href="#">剧情片</a>
                </li>
                <li>
                  <a href="#">科幻片</a>
                </li>
              </ul>
              <ul class="nav navbar-nav navbar-right">
                <li>
                  <a href="#">评分最高</a>
                </li>
                <li>
                  <a href="#">最热门</a>
                </li>
              </ul>
            </div>
          </div>
        </nav>
        

2. CSS code

// --------------------------------------------------


.jumbotron {
    
    
  padding-top:    @jumbotron-padding;
  padding-bottom: @jumbotron-padding;
  margin-bottom: @jumbotron-padding;
  color: @jumbotron-color;
  background-color: @jumbotron-bg;

  h1,
  .h1 {
    
    
    color: @jumbotron-heading-color;
  }

  p {
    
    
    margin-bottom: (@jumbotron-padding / 2);
    font-size: @jumbotron-font-size;
    font-weight: 200;
  }

  > hr {
    
    
    border-top-color: darken(@jumbotron-bg, 10%);
  }

  .container &,
  .container-fluid & {
    
    
    border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container
    padding-left:  (@grid-gutter-width / 2);
    padding-right: (@grid-gutter-width / 2);
  }

  .container {
    
    
    max-width: 100%;
  }

  @media screen and (min-width: @screen-sm-min) {
    
    
    padding-top:    (@jumbotron-padding * 1.6);
    padding-bottom: (@jumbotron-padding * 1.6);

    .container &,
    .container-fluid & {
    
    
      padding-left:  (@jumbotron-padding * 2);
      padding-right: (@jumbotron-padding * 2);
    }

    h1,
    .h1 {
    
    
      font-size: @jumbotron-heading-font-size;
    }
  }
}




3. Personal summary

A set of qualified web pages should include (specifically, it can be determined according to individual requirements)

  1. The page is divided into four parts: the header, the menu navigation bar (preferably pull down), the middle content section, and the footer;
  2. All pages are hyperlinked to each other, and you can go to the third-level page, which consists of 5-10 pages;
  3. The unified layout of the page style is normal, not messy, using Div+Css technology;
  4. The menu is beautiful and eye-catching, and the secondary menu can pop up and jump normally;
  5. There must be JS special effects, such as timing switching and manual switching of picture news;
  6. There are multimedia elements in the page, such as gif, video, music, and the use of form technology;
  7. The page is clean, beautiful, generous, and not the same.
  8. The front-end program of the website must not only be able to present the content required by the user, but also meet the requirements of good layout, beautiful interface, elegant color matching, and various forms of expression.

Four, wonderful recommendation

1. If you see this, please support me 【点赞收藏博文】three times. Your support is the driving force for my creation 【观注作者 |获取更多源码| 优质文章】 .

2. Follow me and take you to learn various front-end plug-ins, 3D cool effects, picture display, text effects, and whole site templates, college graduate graduation HTML templates, final assignment templates, etc.! Discuss front-end Node knowledge and learn from each other!"

3. The above content and technology-related issues can learn and communicate with each other

Guess you like

Origin blog.csdn.net/qq_38514511/article/details/130696769