美文网首页
我的freeCodeCamp之旅--练习HTML、CSS、Boo

我的freeCodeCamp之旅--练习HTML、CSS、Boo

作者: TAsama | 来源:发表于2018-12-27 16:13 被阅读7次
    1. Bootstrap 有一个 class 属性叫做 well,它的作用是为设定的列创造出一种视觉上的深度感。
    2. 并不是每一个 class 属性都是用于 CSS 的。 有些时候我们创建一些 class 只是为了更方便地在jQuery中选中这些元素。
    <div class="container-fluid">
      <h3 class="text-primary text-center">jQuery Playground</h3>
      <div class="row">
        <div class="col-xs-6">
          <h4>#left-well</h4>
          <div class="well" id="left-well">
            <button class="btn btn-default target" id="target1">#target1</button>
            <button class="btn btn-default target" id="target2">#target2</button>
            <button class="btn btn-default target" id="target3">#target3</button>
          </div>
        </div>
        <div class="col-xs-6">
          <h4>#right-well</h4>
          <div class="well" id="right-well">
            <button class="btn btn-default target" id="target4">#target4</button>
            <button class="btn btn-default target" id="target5">#target5</button>
            <button class="btn btn-default target" id="target6">#target6</button>
          </div>
        </div>
      </div>
    </div>
    
    效果图
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    </head>
    <style>
    
        h2 {
    
            font-size: 30px;
        }
        h1 {
            font-size: 63px;
        }
    
        body {
    
            font-size: 14px;
        }
    
    
        blockquote {
            display: block;
            margin-block-start: 1em;
            margin-block-end: 1em;
            margin-inline-start: 40px;
            margin-inline-end: 40px;
        }
    
    </style>
    <body>
    <div class="container">
        <div class="jumbotron">
            <div class="row">
                <div class="col-xl-8">
                    <h1 class="text-center">Dr. Norman Borlang</h1>
                    <h2 class="text-center">
                        <em>The man who saved a billion lives</em>
                    </h2>
                    <div class="img-thumbnail">
                        <img src="https://c2.staticflickr.com/4/3689/10613180113_fdf7bcd316_b.jpg" alt="photo" style="margin-left: auto;margin-right: auto">
                        <div class="text-center text-capitalize" style="font-size: 14px">
                            "Dr. Norman Borlaug, third from left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger."
                        </div>
                    </div>
                    <div class="col-md-8">
                        <h3 style="margin-top: 20px;margin-bottom: 10px;">Here's a time line of Dr. Borlaug's life:</h3>
                        <ul>
                            <li><strong>1914</strong> - Born in Cresco, Iowa</li>
                            <li><strong>1933</strong> - Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li>
                            <li><strong>1935</strong> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li>
                            <li><strong>1937</strong> - Finishes university and takes a job in the US Forestry Service</li>
                            <li><strong>1938</strong> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li>
                            <li><strong>1941</strong> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disenfectants, and other applied science.</li>
                            <li><strong>1942</strong> - Receives a Ph.D. in Genetics and Plant Pathology</li>
                            <li><strong>1944</strong> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li>
                            <li><strong>1945</strong> - Discovers a way to grown wheat twice each season, doubling wheat yields</li>
                            <li><strong>1953</strong> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertalizer. It goes on to provide 95% of Mexico's wheat.</li>
                            <li><strong>1962</strong> - Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li>
                            <li><strong>1970</strong> - receives the Nobel Peace Prize</li>
                            <li><strong>1983</strong> - helps seven African countries dramatically increase their maize and sorghum yields</li>
                            <li><strong>1984</strong> - becomes a distinguished professor at Texas A&amp;M University</li>
                            <li><strong>2005</strong> - states "we will have to double the world food supply by 2050." Argues that genetically modified crops are the only way we can meet the demand, as we run out of arable land. Says that GM crops  are not inherently dangerous because "we've been genetically modifying plants and animals for a long time. Long before we called it science, people were selecting the best breeds."</li>
                            <li><strong>2009</strong> - dies at the age of 95.</li>
                        </ul>
                        <blockquote>
                            <p style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 21px;font-weight: 200;">
                                "Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."
                            </p>
                            <footer>
                                <cite style="font-style: italic">- Indian Prime Minister Manmohan Singh</cite>
                            </footer>
                        </blockquote>
                        <h3>If you have time, you should read more about this incredible human being on his <a href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank">Wikipedia entry</a>.</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
    </html>
    

    相关文章

      网友评论

          本文标题:我的freeCodeCamp之旅--练习HTML、CSS、Boo

          本文链接:https://www.haomeiwen.com/subject/httdlqtx.html