Beauty of Bootstrap 3 01-download and introduce the page, bootstrap01-

Source: Internet
Author: User
Tags getbootstrap

Beauty of Bootstrap 3 01-download and introduce the page, bootstrap01-

This article mainly includes:

 

■ Download Bootstrap 3
■ Bootstrap 3 Introduction page

 

Download Bootstrap 3

→ Open Website: http://getbootstrap.com/
→ Click Download Bootstrap in the center of the screen.
→ On the Bootstrap Download page, you can select three buttons: Download Bootstrap, Download source, and Download Sass. Select "Download source"
→ Decompress the package and open the bootstrap-3.2.0 folder.

 

Bootstrap 3 Introduction page

→ Use Visual stuidio2012to create an empty asp.netproject and create an index.html file under the root directory
→ Copy the css, fonts, and js folders in the dis folder to the project root directory.

Import the bootstrap.min.cssfile under the cssfile to the index.html file.
→ Install the latest jQuery version through NuGet

Upload the jquery-2.1.1.min.js file under the scriptsfolder to the index.html file.
Import bootstrap.min.jsfrom the JS folder to the index.html file.
→ Copy the images folder with images to the root directory

The contents of index.html

<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <script src="Scripts/jquery-2.1.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
<body>
    <div id="page">
        
            <div id="menu">
                <ul>
<Li> <a href = "#"> homepage </a> </li>
<Li> <a href = "#"> about us </a> </li>
<Li> <a href = "#"> Contact Us </a> </li>
                </ul>
            </div>
            <div id="logo">
                <a href="."></a>
            </div>
        
        <section id="body">
            <section id="main">
<H1> Sina sports news 
                
<P> in the first round of the 2014 semi-finals in the 1/4 Champions League, Guangzhou Evergrande lost 0-1 away from Western Sydney wanderer. During the competition, Zhang linmin and Lin received the red card and received multiple disputes. In an interview with Tianjin Sports Channel, the referee Zhang said laroka had a serious foul on Zhang Linke and should receive a yellow card, while Zhang Linke's face was a serious foul, the primary referee Hassan showed him the red card. John Zhang and Li Dai, Liu Jian, who fouled Saba, showed Lin a red card. In addition, Zhang believes that Hasan missed a penalty kick from Evergrande in the first half. </P>
                <p></p>
                
<H1> laroka fell into the fight, Zhang Linyu 
<P> This competition lasted for 89th minutes. laruoka fell into the fight and Zhang Linke, who was suspected of playing the laruoka face when trying to get rid of laruoka, laroka fell to the ground immediately, and the referee Hassan showed Zhang linyan a red card decisively, without any penalty measures for laroka. Zhang Linke was given a red card by the referee, and Zhang Zhangqiang said: "laroka's foul is serious. He has been holding this Zhang Linke, and it takes a long time. At this time, he serves as the referee Hassan, we should take the initiative to blow the looka foul first, and this problem will be solved. As a result, he never blew it. As a result, Zhang linyan is also angry. He was angry. When he came back and threw his hand, he hit laroka's face. He beat people with his arm. This is a serious foul. The referee should show his red card. You must show a yellow card for laroka's action, because you repeatedly foul and hold him with both hands. This is a non-sports activity ." </P>
                <p></p>
                
<P> the most controversial penalty has emerged during the injury and makeup period of the entire game. In a fight, Liu Jian left a foul on Saba. Saba fell to the ground randomly, and Zhang linyan raised his leg and tried to avoid stepping on Saba, but Saba turned his face on the ground. The referee Hassan decisively presented a red card to Lin, and Lippi rushed into the venue and asked him why he was fined Lin. Regarding the penalty for this dispute, Zhang zhangyan bluntly said: "The foul is Liu Jian. As a result, Lin came over and he wanted to take the ball. Actually, he didn't come across this Saba. So in this case, this referee, Hassan, equals to Zhang guanli Dai. You have to deal with the penalty. You have to punish Liu Jian because there is a hacker behind him, and Lin has no foul actions at all, this ball is totally wrong if you give a red card." </P>
                <p></p>
                
<P> when the game lasts for 6th minutes, Lin Zhenglin's close-up attack was blocked by tolec. When Lin motioned that tolec had a ball, the other side of the ball door was blocked by the opponent. The referee Hassan ignored Lin's complaint. The slow camera showed that Tric had a ball. In this regard, Zhang zhangyan said: "This Lin is very close to the ball door, that is, four or five meters away. But when he shot the video, he was blocked by the west Sydney guard by his arm, without this arm, the ball is likely to hit the ball again. Whether intentionally or unintentionally, his arm plays a role in influencing the goal opportunity. We have to get a penalty for this ball ." During the competition, the former Dalian Albin foreign aid Mu Lun also dumped El ksson, but the referee Hassan did not play a card to him, Zhang Zhangqiang said: "This competition, (west Sydney wanderer) the special focus is on El ksson. This action has obviously affected El ksson's attack opportunity. In addition to the penalty for any ball, the ball must be played with a yellow card, warn the west Sydney wanderer of the defender." </P>
                
<P> On the afternoon of June 14, the Guangzhou Evergrande club officially sent a message to the Secretary-General Eric Liz of the AFC? Sosa and the heads of relevant departments sent a letter explaining the unfair punishments for the two red cards that appeared during the last night's competition. In addition, the Chinese Football Association is also very concerned about Evergrande's competition, and will also send a letter to the AFC, hoping to create a fair and equitable competition environment for the Chinese club. </P>
            </section>
        </section>
        
        <footer>
<P> maintain the reputation and dignity of Chinese soccer in Asia </p>
        </footer>
    </div>
</body>


→ Add a class attribute to the div whose id is page
<Div id = "page" class = "container">


It was found that there was a change before the class attribute was not added, and the page was left blank with two more sides.


References:
WilderMinds
Http://getbootstrap.com/

 

The "Beauty of Bootstrap 3" series of classes include:

Beauty of Bootstrap 3 01-download and introduce the beauty of Bootstrap 3 on the page 02-Grid introduction and beauty of APP Bootstrap 3 03-independent lines, text wrapping, image adaptive, hidden elements
How can we make existing websites support bootstrap 3?

Every page must introduce the CSS and JS of BOOTSTRAP and modify the classes of each element. For example, the <button class = "btn-primary"> button </BUTTON>

How to deploy BootStrap in a java web project

BootStrap mainly acts on front-end beautification and has its own layout. You only need to extract the downloaded file package and add it to the project, you can reference the file in html or jsp. However, before introducing JavaScript, you must introduce jquery first because it depends on jquery, also, it is best not to disturb the order of his files, because it also calls its own files internally. If you mess up the file, as a result, it may not find its own file. Therefore, direct introduction is the best method. first introduce the CSS file <link href = "> and then introduce jquery <script src =" ">, finally, introduce the Javascript file <script src = "">, for example:
<! Doctype html>
<Html>
<Head>
<Link href = "bootstrap-datetimepicker-master/sample in bootstrap v2/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<Link rel = "stylesheet" type = "text/css" media = "screen"
Href = "bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css">
</Head>
<Body>
<Div class = "input-append date form_date" data-date-format = "yyyy-mm-dd">
<Input size = "16" type = "text" value = "" readonly>
<Span class = "add-on"> <I class = "icon-remove"> </I> </span>
<Span class = "add-on"> <I class = "icon-calendar"> </I> </span>
</Div>

<Div class = "input-append date" id = "datetimepicker" data-date-format = "yyyy-mm-dd">
<Input class = "span2" size = "16" type = "text">
<Span class = "add-on"> <I class = "icon-th"> </I> & l ...... the remaining full text >>>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.