html 任务1.10的要点

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 任务1.10的要点相关的知识,希望对你有一定的参考价值。

* { box-sizing: border-box; }

.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
	}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */

body {
   color: #fff;
   font-family: 'Lato', sans-serif;
   padding-top: 21px;
   line-height: 150%;
   position: relative;
    font-size: 1.6em;
}


a, a:active, a:visited {
  text-decoration: none;
  color: #d35400;
}

a:hover {
  text-decoration: none;
  color: #ff883a;
  transition: color 0.25s;
  -webkit-transition: color 0.25s;
}


/*---typography---*/


h1 {
  font-weight: 300;
  font-size: 3em;
}

.header h1 {
  text-align: center;
}

.intro p {
  font-size: 2em;
  font-weight: 100;
  -webkit-margin-before: 0;
}

.skills h3 {
  margin-top: 0;
  text-align: center;
  text-transform: uppercase;
}

.active {
  background-color: #000;
}

/*--------------------*/
/*------ HEADER ------*/
/*--------------------*/

.jumbotron {
    background-image: url(../img/background.jpg);
    background-size: cover;
    padding-top: 10px;
}


.jumbotron p {
      color: white;
      margin-bottom: 30px;
}

.jumbotron a {
  text-decoration: none;
  color: #ffffff;
}

.jumbotron a:hover {
  text-decoration: none;
  color: #b7b7b7;
}

.jumbotron h1 {
  font-weight: 400;
  font-size: 500%;
  color: #f8f8f8;
  margin-bottom: 10px;
}

.header {
  margin-bottom: 25px;
  margin-top: 40px;
}

.header h1 {
  color: #000;
  font-size: 3em;
}

.image {
  display: inline-block;
  float: left;
  padding: 10px;
}

.column-container {
  background-color: #ecf0f1;
}

.container-custom {
    
    width: 100%;
    margin: 0px auto auto auto;
    background-color: #d35400;
}

.carousel-caption {
  background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.9));
  left: 0;
  right: 0;
  bottom: 0;

}

.container-carousel {
  background-color: #d35400;
  width: 100%;
  
  padding-bottom: 40px;
  padding-left: 0px;
  padding-right: 0px;
}

.carousel-indicators {
  bottom: 0;
}

.logo {
  background: #000;
}

.projectName {
  text-transform: uppercase;
  color: #fff;
  background-color: #000;
}

.projectName a {
  color: #fff;
  
}

.projectName a:hover {
  color: #fff;
  text-decoration: none;
}

/*.navbar {
  background-color: #d35400;
  position: fixed;
  width: 100%;
  top: 0;
  padding-top: 20px;
  border-radius: 0px;
  z-index: 1;
  
}

.navbar  a {
  display: inline-block;
  color: #fff;
  float: left;
  text-transform: uppercase;
  padding: 10px 15px 10px 50px;
  transition: color 0.25s;
  -webkit-transition: color 0.25s;
}



.navbar  a:hover {
  color: #34495e;
  text-decoration: none;
}



.navbar  ul {
  margin: 2px 0px;
}
.navbar ul li {
  display: inline-block;
  text-align: center;
  float: right;
}

.navbar ul li active {
  background-color: #000;
}
*/
.navbar ul li a {
  
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px;
  text-align: center;
}

.navbar-inverse {
    background-color: #d35400;
    border-color: #d35400;
}

.navbar-inverse .navbar-nav>li>a {
    color: #fff;
}

.navbar-inverse .navbar-nav>li>a:hover {
  color: #c4c4c4;
}

.navbar-fixed-top {
    top: 0;
    border-width: 0px;
}

.dropdown-menu {
  background-color: #000;
}

.dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover {
  background-color: #d35400;
}

.anchor {
  padding-top: 60px;
}

/*
.nav {
  text-align: center;
}

.nav ul li a {
  text-align: center;
}
*/
/*--------------------*/
/*------- GOALS ------*/
/*--------------------*/

.container-goals {
  color: #000;
  width: 100%;
  background-color: #ffffff;
}

/*--------------------*/
/*------- WORK -------*/
/*--------------------*/

.container-work {
  width: 100%;
  margin: 0px auto auto auto;
  background-color: #fafafa;
  padding-top: 20px;
  padding-bottom: 50px;
}


.column {
  display: inline-block;
  float: left;
  width: 33%;
  padding-right: 10px;
}

.work-screenshot {
  width:auto;
  margin: 0 auto;
}
.work-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  margin-left: 0px;
  margin-right: 0px;
}

/*--------------------*/
/*------- ABOUT -------*/
/*--------------------*/

.container-about {
    
  color: #000;
  width: 100%;
  background-color: #ffffff;
  padding-top: 20px;
  padding-bottom: 50px;
}

.about-header h1 {
  color: #000;
}

/*--------------------*/
/*------- CONTACT -------*/
/*--------------------*/

.overlay{
    background: rgba(118, 118, 118, 0.45);
    overflow: hidden;
    height: 100%;
    z-index: 2;
}

.container-contact {
  
  background-image: linear-gradient(rgba(255, 136, 58, 0.45), rgba(255, 136, 58, 0.45)), url("../img/contact-photo.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-color: #fff;
  color: #1f1f27;
  width: 100%;
  margin: 0px auto auto auto;
  padding-top: 20px;
  padding-bottom: 50px;
}



.contact-header h1 {
  color: #000;
}

.contact-details {
  width: 90%;
  margin-left: 10%;
  font-size: 1.3em;
}

.contact-details a {
  color: #1f1f27;
}

.contact-details a:hover {
  text-decoration: none;
  color: #2b6cb9;
}

.contact-card {
  background-color: #b14600;
  padding: 0;
  margin-right: 0px;
  width: 23%;
  height: auto;
  display: inline;
}

.contact-card-row {
  display: flex;
  justify-content: space-between;
  background-color: #c24d00;
  padding: 10px;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  margin-left: 0px;
  margin-right: 0px;
}

.contact-card p {
  margin-bottom: 3px;
  margin-top: 2px;
}



/*--------------------*/
/*------- FAQ -------*/
/*--------------------*/

.faq-panel {
  padding: 10px 30px;
}

.container-faq {
  color: #000;
  background-color: #ffefe4;
  width: 100%;
}

#carousel-example-generic {
  padding-top: 0px;
}

.main-text {
        clear: both;
        padding-top: 40px;
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: 20px;
        color: #000;
}

.map-row {
  margin: 30px 20%;
  text-align: center;
  width: 60%;
  
}
.contact-image img {
  height: 30px;
}


.map-image-container {
  display: inline;
  height: 450px;
}

.map-image-container img {
  /*background-image: url(../img/map.png);
  background-size: 100%;
  height: 450px;
  background-repeat: no-repeat;*/
  width: 100%;
  margin: 10px;
  border: solid 10px #c24d00;

}


.about-image {
  width: 100%;
}

.intro {
  padding: 30px 50px;
}


.skills {
  padding-left: 20px;
  padding-top: 10px;
  margin-top: 55px;
  color: #404040;
  border: 1px solid white;
}


#skill-list {
  padding-left: 50px;
}

.panel-body {
  background-color: #c24d00;
  color: #fff;
}

.panel-default {
  border-color: #ff883a;
  background-color: #ff9d5c;
}

.panel-default>.panel-heading {
  background-color: #ff883a;
  color: #fff;
  border-color: #ff883a;
}

.panel-heading a {
  text-decoration: none;
}

#work {
  width: 100%;
  margin: 0 auto;
}

#work img {
  margin: 10px 5px;
}




.carousel-inner {
 
}

.item {
   max-height: 750px;
}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

    <title>Home | Matt Barker</title>

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i" rel="stylesheet">
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/styles.css">
   
    <!-- Custom styles for this template go here -->


    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body data-spy="scroll" data-target=".navbar">
    
<!-------------NAV--------------->
    
     <!--navbar starts here-->
  <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
          data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <div class="projectName navbar-brand">
          <a href="#"><strong>Matt</strong>Barker</a>
            </div> <!--end projectName -->
        </div> <!--end navbar-header -->
      <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav navbar-right">
          <li role="presentation" class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Work<span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="#work1">Portfolio Site</a></li>
              <li><a href="#work2">Omnifood</a></li>
            </ul>
            </li>
          <li><a href="#about">About</a></li>
          <li><a href="#contact">Contact</a></li>
          <li><a href="#faq">FAQ</a></li>
            
            
            
        </ul>
    </div> <!-- end nav -->
    </div><!-- end nav container-->
  </nav> <!-- end navbar-->
    
<!-------------CAROUSEL--------------->
    
    <div class="container container-carousel ">
      <div id="carousel-example-generic" class="carousel slide hidden-xs" data-ride="carousel" >
        
        <!-- Indicators -->
        <ol class="carousel-indicators">
          <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
          <li data-target="#carousel-example-generic" data-slide-to="1"></li>
          <li data-target="#carousel-example-generic" data-slide-to="2"></li>
        </ol>

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
          <div class="item active">
            <img src="img/carousel_01_optimised.jpg" alt="...">
            <div class="carousel-caption">
              <h2>Sheffield</h2>
              <p>Sheffield city centre</p>
            </div>
          </div>
          <div class="item">
            <img src="img/carousel_02_optimised.jpg" alt="...">
            <div class="carousel-caption">
              <h2>Ullswater</h2>
              <p>Ullswater in the lake district</p>
            </div>
          </div>
          <div class="item">
            <img src="img/carousel_03_optimised.jpg" alt="...">
            <div class="carousel-caption">
              <h2>Fuerteventura</h2>
              <p>Mountains in Fuerteventura</p>
            </div>
          </div>
        </div>

        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
          <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
          <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
          <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
          <span class="sr-only">Next</span>
        </a>
      </div><!-- end carousel -->

     </div>

<!-------------GOALS--------------->
    
    <div class="container container-goals anchor">
      <!-- Example row of columns -->
      <div class="row">
        <div class="col-xs-12 col-md-4">
          <h2>Portfolio Concept</h2>
          <p>This portfolio site will ultimately become my home on the web as I develop my skills and experience.<br> I have some background in web development having put together a website for my current employer (a legal firm).</p>
          <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
        </div><!-- /col -->
        <div class="col-xs-12 col-md-4">
          <h2>Project Goals</h2>
          <p>I plan to commit at least 15 hours per week to this project with a view to having a fully functioning, responsive portfolio site up and running in the next month.</p>
          <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
       </div><!-- /col -->
        <div class="col-xs-12 col-md-4">
          <h2>Course Goals</h2>
          <p>My number 1 goal for this course is to switch careers.<br /> I plan on firstly getting hired as a junior developer in order to build experience and skill and ultimately become a freelance developer.<br>I currently work as a case management developer for a legal firm, which while it can be rewarding, is a very niche skill.<br> On learning web development, I will have a much more generic skillset that is applicable to a wide variety of jobs. </p>
          <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
        </div><!-- /col -->
      </div><!-- /row -->

      <hr>


    </div> <!-- /container -->
    
<!-------------WORK1--------------->
     <div class="container container-work anchor" id="work1">
       <div class="header about-header">
        <h1><strong>Previous</strong> Work | <a href="http://omnifood.bitballoon.com/" target="_blank">Portfolio Site</a></h1>
         <div class="row work-row main-text">
           <p>This is the site you are currently visiting and was built as the first module in the excellent <a href="https://careerfoundry.com/en/courses/become-a-web-developer" target="_blank"><em>Become a Web Developer</em></a> course over at <a href="https://careerfoundry.com/" target="_blank">Career Foundry</a></p>
         </div>
    </div>
      <div class="row work-row">
        <div class="work-screenshot">
          <img src="img/homepage-screenshot.jpg" class="img-responsive">
        </div>
      </div>
    <hr>
    </div>
        <div class="container container-work anchor" id="work2">
       <div class="header about-header">
         <h1><strong>Previous</strong> Work | <a href="http://omnifood.bitballoon.com/" target="_blank">Omnifood</a></h1>
         <div class="row work-row main-text">
           <p>This website was built by following the excellent <a href="https://www.udemy.com/design-and-develop-a-killer-website-with-html5-and-css3/" target="_blank"><em>Build Responsive Real World Websites with HTML5 and CSS3</em></a> tutorial at <a href="https://www.udemy.com" target="_blank">Udemy</a></p>
         </div>
    </div>
      <div class="row work-row">
        <div class="work-screenshot">
          <a href="http://omnifood.bitballoon.com/" target="_blank"><img src="img/omnifood-screenshot.jpg" class="img-responsive"></a>
        </div>
      </div>
    
    </div>
  
<!-------------ABOUT--------------->
    
    
      <div class="container container-about anchor" id="about">
      <div class="header about-header">
        <h1><strong>About</strong> Me</h1>
      </div>
      
      <div class="main-text">
        <h2>More about me...</h2>
        <p>
          I'm a budding web designer living in the midlands of the UK. My current full time job is Lead IT Support for a firm of solicitors but I'm working towards a change of career to web design and development. <br><br>
          I am currently enrolled in the <a href="http://www.careerfoundry.com" target="_blank">Career Foundry</a> <a href="https://careerfoundry.com/en/courses/become-a-web-developer" target="_blank">Web Developer</a> course.
        </p>
      </div><!-- end main-text -->
    </div><!-- end container-custom -->
  
<!-------------CONTACT--------------->
    <div class="overlay">
    <div class="container-fluid container-contact anchor" id="contact">
      
      <div class="header contact-header">
        <h1><strong>Contact</strong> Me</h1>
        <div class="main-text"><p>Franzen irony pabst, est esse readymade consequat ugh you probably haven't heard of them health goth etsy eu. Labore offal odio, kickstarter consequat skateboard taxidermy kogi shoreditch heirloom. Non nihil deep v heirloom aute. Roof party man braid meggings shabby chic. Asymmetrical 90's celiac nisi twee neutra.</p></div>
      </div><!--header-->
      <div class="contact-details">
          <p><strong>Email:&nbsp;</strong><a href="mailto:matt@mattbarker.net"><span class="glyphicon glyphicon-inbox"></span>&nbsp; matt@mattbarker.net</a></p>
          <p><strong>Phone:&nbsp;</strong><span class="glyphicon glyphicon-earphone"></span>&nbsp; 0773777111</p>
          <p><strong>Linked</strong>In:&nbsp;<a href="https://uk.linkedin.com/in/matt-barker-b9282b37" target="_blank">
            <span class="glyphicon glyphicon-user"></span>&nbsp; Matt Barker</a></p>
          <p><strong>Address:&nbsp;</strong><span class="glyphicon glyphicon-home"></span>&nbsp; 56 Fake Street, Fake Town, S44 1UP</p>  
    </div>
        </div>
    </div><!--contact container-->
    
<!-------------FAQ--------------->
    
    <div class="container container-faq anchor" id="faq">
      <div class="header">
        <h1><strong>FAQ</strong></h1>
        </div>
      <div class="main-text">
        <h2>Click on a heading to view answers to frequently asked questions.</h2>
        <!--Start Accordion-->
        <div class="container"></div>
          <div class="panel-group faq-panel" id="accordion">
            <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
          <span class="glyphicon glyphicon-question-sign"></span>&nbsp; Why did you decide to become a web developer?
        </a>
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse in">
      <div class="panel-body">
        <span class="glyphicon glyphicon-info-sign"></span>&nbsp; I have always enjoyed the creative aspects of design and enjoy the challenge of creating something 'usable.' Web design and development gives me the freedom to apply my creative ideas to something that hopefully people will enjoy using. 
      </div>
    </div>
  </div>
<div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
          <span class="glyphicon glyphicon-question-sign"></span>&nbsp; What is your design process?
        </a>
      </h4>
    </div>
    <div id="collapseTwo" class="panel-collapse collapse in">
      <div class="panel-body">
        <span class="glyphicon glyphicon-info-sign"></span>&nbsp; My design process is fairly flexible and will be adapted to the client's needs and the complexity of the project. I will always include a sketching and drafting stage as well as mockups of potential designs. 
      </div>
    </div>
  </div>
 <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
          <span class="glyphicon glyphicon-question-sign"></span>&nbsp; What is your average project turnaround?
        </a>
      </h4>
    </div>
    <div id="collapseThree" class="panel-collapse collapse in">
      <div class="panel-body">
        <span class="glyphicon glyphicon-info-sign"></span>&nbsp; Project turn around will depend on the complexity of the project but is usually around 8 - 12 weeks from specification to finished project.
      </div>
    </div>
  </div>
    

</div><!-- end accordion -->
  </div>
    </div>
  <!-- ============================= -->
  <!-- All your JavaScript comes now -->
  <!-- ============================= -->
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  <!-- Bootstrap core JS -->
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  <!-- Can place script tags with JavaScript files here -->

  <script type="text/javascript">
  var $root = $('html, body');
    $('.navbar-nav a').click(function() {
        var href = $.attr(this, 'href');
        $root.animate({
            scrollTop: $(href).offset().top
        }, 500, function () {
            window.location.hash = href;
        });
        return false;
    });
</script>
  
</body>
</html>

以上是关于html 任务1.10的要点的主要内容,如果未能解决你的问题,请参考以下文章

html 任务1.6的要点

1.10 Celery

1.10程序设计错误

新解法华为OD机试 - 任务调度 | 备考思路,刷题要点,答疑,od Base 提供

数据表 1.10 - TD 中的 HTML5“数据顺序”属性无效

HTML5 1.10 微格式