简体   繁体   English

我使用的 HTML 代码无法正确显示?

[英]HTML code I am using will not display properly?

I am using this pre-made profile code.我正在使用这个预制的配置文件代码。 They have given me the html code to it.他们给了我 html 代码。 So I tried using it.所以我尝试使用它。 And all it gave me was the wrong display.它给我的只是错误的显示。 I have linked the picture of what it should be displayed as.我已经链接了它应该显示为什么的图片。 And to what it is displaying when I use it.以及我使用它时显示的内容。

Also sorry if the code is a little wonky.如果代码有点不稳定,也很抱歉。 I just got started with it.我刚刚开始使用它。 Thanks to whom ever helps me!感谢曾经帮助过我的人!

What it should display as它应该显示为图1

What it does instead.它的作用是什么。 图2

Code:代码:

<div class="container">
<div class="row clearfix well">
    <div class="col-md-2 column">
        <img class="img-thumbnail" alt="140x140" 
src="http://lorempixel.com/140/140/" />
    </div>
    <div class="col-md-8 column">
        <blockquote>
            <p>
                Potter Guy
            </p> <small>21 / M / Single / Straight <cite>London 
England</cite></small>
        </blockquote>
    </div>
    <div class="col-md-2 column">

             <button class="btn btn-default btn-block" type="button">
                Poke
             </button>
             <button class="btn btn-default btn-block" type="button">
                Message
             </button>
             <button class="btn btn-default btn-block" type="button">
                Save
             </button>


    </div>
</div>
<div class="row clearfix">
    <div class="col-md-12 column">
        <div class="tabbable" id="tabs-444468">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#panel-200304" data-toggle="tab">About</a>
                </li>
                <li>
                    <a href="#panel-567649" data-toggle="tab">Photos</a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="panel-200304">
                     <div class="row clearfix">
                        <div class="col-md-8 column">
                            <p>
                                <strong>About me</strong><br/>
                                it's just awful to write this stuff and i 
hate having to sell myself or make myself seem like some amazing superhuman. 
i have some generic interests, im a bit shy, and i dont play games and just 
want be there for a girl and make her feel like the most unique and special 
person, so this is one of the most annoying experiences ever. i dont even 
know why i bother with this stuff when everyone is basically selling 
themselves as an idealized superman and I just want girls to know who I am 
and they can take or leave it. 
                            </p>
                            <hr/>
                            <p>
                                <strong>What i am doing with my 
life</strong><br/>
                                it's just awful to write this stuff and i 
  hate having to sell myself or make myself seem like some amazing superhuman. 
i have some generic interests, im a bit shy, and i dont play games and just 
want be there for a girl and make her feel like the most unique and special 
 person, so this is one of the most annoying experiences ever. i dont even 
know why i bother with this stuff when everyone is basically selling 
themselves as an idealized superman and I just want girls to know who I am 
and they can take or leave it. 
                            </p>
                            <hr/>
                            <p>
                                <strong>I am really good at ?</strong><br/>
                                it's just awful to write this stuff and i 
hate having to sell myself or make myself seem like some amazing superhuman. 
i have some generic interests, im a bit shy, and i dont play games and just 
want be there for a girl and make her feel like the most unique and special 
person, so this is one of the most annoying experiences ever. i dont even 
know why i bother with this stuff when everyone is basically selling 
themselves as an idealized superman and I just want girls to know who I am 
and they can take or leave it. 
                            </p>
                            <hr/>
                            <p>
                                <strong>The first thing you will notice 
about me?</strong><br/>
                                it's just awful to write this stuff and i 
hate having to sell myself or make myself seem like some amazing superhuman. 
i have some generic interests, im a bit shy, and i dont play games and just 
want be there for a girl and make her feel like the most unique and special 
person, so this is one of the most annoying experiences ever. i dont even 
know why i bother with this stuff when everyone is basically selling 
themselves as an idealized superman and I just want girls to know who I am 
and they can take or leave it. 
                            </p>
                            <hr/>
                            <p>
                                <strong>I cant live without ?</strong><br/>
                                My Mobile
                                My Car
                                My Dog
                            </p>
                            <hr/>
                            <p class="well">
                            <strong>I am looking for ?</strong><br/>
                                 someone good with heart
                            </p>
                        </div>
                        <div class="col-md-4 column">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>
                                            Details
                                        </th>
                                        <th>
                                            His/ Her
                                        </th> 
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            Last Online
                                        </td>
                                        <td>
                                            1 hour ago
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Ethinicity
                                        </td>
                                        <td>
                                            White
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Height
                                        </td>
                                        <td>
                                            5' 8"
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Body type
                                        </td>
                                        <td>
                                            Slim
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Diet
                                        </td>
                                        <td>
                                            Veg
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Smoke
                                        </td>
                                        <td>
                                            No
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Drink
                                        </td>
                                        <td>
                                            Occasionally
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Drugs
                                        </td>
                                        <td>
                                            No
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Religion
                                        </td>
                                        <td>
                                            Hindu
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Sign
                                        </td>
                                        <td>
                                            Vergo
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Education
                                        </td>
                                        <td>
                                            Masters
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Job
                                        </td>
                                        <td>
                                            Consultant
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Income
                                        </td>
                                        <td>
                                            5 figures
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Language
                                        </td>
                                        <td>
                                            <ol>
                                             <li>English</li>
                                             <li>Spanish</li>
                                             <li>Hindi</li>
                                             </ol>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="panel-567649">
                                     <div class="row clearfix">
    <div class="col-md-8 column">
        <img alt="140x140" src="http://lorempixel.com/140/140/" /><img 
alt="140x140" src="http://lorempixel.com/140/140/" /><img alt="140x140" 
src="http://lorempixel.com/140/140/" /><img alt="140x140" 
src="http://lorempixel.com/140/140/" />
    </div>
    <div class="col-md-4 column">
        <p>
            Lorem ipsum dolor sit amet, <strong>consectetur adipiscing 
elit</strong>. Aliquam eget sapien sapien. Curabitur in metus urna. In hac 
habitasse platea dictumst. Phasellus eu sem sapien, sed vestibulum velit. 
Nam 
purus nibh, lacinia non faucibus et, pharetra in dolor. Sed iaculis posuere 
diam ut cursus. <em>Morbi commodo sodales nisi id sodales. Proin 
consectetur, nisi id commodo imperdiet, metus nunc consequat lectus, id 
bibendum diam velit et dui.</em> Proin massa magna, vulputate nec bibendum 
nec, posuere nec lacus. <small>Aliquam mi erat, aliquam vel luctus eu, 
pharetra quis elit. Nulla euismod ultrices massa, et feugiat ipsum consequat 
eu.</small>
        </p>
    </div>
</div>
                </div>
            </div>
        </div>

    </div>
</div>
</div>

The provided HTML uses Bootstrap styling.提供的 HTML 使用 Bootstrap 样式。 Bootstrap is a commonly used library for user interfaces. Bootstrap 是一个常用的用户界面库。

To use Bootstrap, you would include a link tag referencing the bootstrap CSS file in the head as well as a script tag referencing the bootstrap javascript file at the bottom of the body like so:要使用 Bootstrap,您需要在头部包含一个引用 bootstrap CSS 文件的链接标签,以及一个引用位于正文底部的 bootstrap javascript 文件的脚本标签,如下所示:

<!DOCTYPE html>
<html>
  <head>
    <title>Your web page's title</title>
    <meta charset="UTF-8">
    <meta name="description" content="Free Web tutorials">
    <meta name="keywords" content="HTML,CSS,XML,JavaScript">
    <meta name="author" content="John Doe">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

  </head>
  <body>

    <div class="container">
      <div class="row clearfix well">
        <div class="col-md-2 column">
          <img class="img-thumbnail" alt="140x140" 
               src="http://lorempixel.com/140/140/" />
        </div>
        <div class="col-md-8 column">
          <blockquote>
            <p>
              Potter Guy
            </p> <small>21 / M / Single / Straight <cite>London 
            England</cite></small>
          </blockquote>
        </div>
        <div class="col-md-2 column">

          <button class="btn btn-default btn-block" type="button">
            Poke
          </button>
          <button class="btn btn-default btn-block" type="button">
            Message
          </button>
          <button class="btn btn-default btn-block" type="button">
            Save
          </button>


        </div>
      </div>
      <div class="row clearfix">
        <div class="col-md-12 column">
          <div class="tabbable" id="tabs-444468">
            <ul class="nav nav-tabs">
              <li class="active">
                <a href="#panel-200304" data-toggle="tab">About</a>
              </li>
              <li>
                <a href="#panel-567649" data-toggle="tab">Photos</a>
              </li>
            </ul>
            <div class="tab-content">
              <div class="tab-pane active" id="panel-200304">
                <div class="row clearfix">
                  <div class="col-md-8 column">
                    <p>
                      <strong>About me</strong><br/>
                      it's just awful to write this stuff and i 
                      hate having to sell myself or make myself seem like some amazing superhuman. 
                      i have some generic interests, im a bit shy, and i dont play games and just 
                      want be there for a girl and make her feel like the most unique and special 
                      person, so this is one of the most annoying experiences ever. i dont even 
                      know why i bother with this stuff when everyone is basically selling 
                      themselves as an idealized superman and I just want girls to know who I am 
                      and they can take or leave it. 
                    </p>
                    <hr/>
                    <p>
                      <strong>What i am doing with my 
                        life</strong><br/>
                      it's just awful to write this stuff and i 
                      hate having to sell myself or make myself seem like some amazing superhuman. 
                      i have some generic interests, im a bit shy, and i dont play games and just 
                      want be there for a girl and make her feel like the most unique and special 
                      person, so this is one of the most annoying experiences ever. i dont even 
                      know why i bother with this stuff when everyone is basically selling themselves as an idealized superman and I just want girls to know who I am and they can take or leave it.

                      I am really good at ?
                      it's just awful to write this stuff and i hate having to sell myself or make myself seem like some amazing superhuman. i have some generic interests, im a bit shy, and i dont play games and just want be there for a girl and make her feel like the most unique and special person, so this is one of the most annoying experiences ever. i dont even know why i bother with this stuff when everyone is basically selling themselves as an idealized superman and I just want girls to know who I am and they can take or leave it.

                      The first thing you will notice about me?
                      it's just awful to write this stuff and i hate having to sell myself or make myself seem like some amazing superhuman. i have some generic interests, im a bit shy, and i dont play games and just want be there for a girl and make her feel like the most unique and special person, so this is one of the most annoying experiences ever. i dont even know why i bother with this stuff when everyone is basically selling themselves as an idealized superman and I just want girls to know who I am and they can take or leave it.

                      I cant live without ?
                      My Mobile My Car My Dog

                      I am looking for ?
                      someone good with heart
                      Details His/ Her Last Online 1 hour ago Ethinicity White Height 5' 8" Body type Slim Diet Veg Smoke No Drink Occasionally Drugs No Religion Hindu Sign Vergo Education Masters Job Consultant Income 5 figures Language
                      English
                      Spanish
                      Hindi
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget sapien sapien. Curabitur in metus urna. In hac habitasse platea dictumst. Phasellus eu sem sapien, sed vestibulum velit. Nam purus nibh, lacinia non faucibus et, pharetra in dolor. Sed iaculis posuere diam ut cursus. Morbi commodo sodales nisi id sodales. Proin consectetur, nisi id commodo imperdiet, metus nunc consequat lectus, id bibendum diam velit et dui. Proin massa magna, vulputate nec bibendum nec, posuere nec lacus. Aliquam mi erat, aliquam vel luctus eu, pharetra quis elit. Nulla euismod ultrices massa, et feugiat ipsum consequat eu.

                  </div>
                </div>
              </div>

              <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>

              <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

              </body>
            </html>

Here's a quick pen这是一支快速笔

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我正在使用角度代码来调用其余的api并将其显示在屏幕上 - I am using angular code to call the rest api and display it on the screen 为什么我的Jquery代码不起作用。 我可以正确连接到HTML吗? - Why my Jquery code doesne't work. Am i properly connected to Html? 我试图通过使用BeautifulSoup分解代码的HTML部分 - I am trying to decompose the HTML part of the code by using BeautifulSoup 如何显示出版商名称以及书名,因为我现在使用的代码仅显示书名。//使用django的html? - How to display publisher name along with the book name,as the code i am using now shows only book names.//using html using django? 我试图在HTML文件中通过PHP通过MYSQL显示图像。 我的代码有什么问题? - I am trying to display an image from MYSQL via PHP in an HTML file. What is wrong with my code? 动态加载HTML并尝试正确显示我 - Dynamic loading of html and trying to display i properly 使用 Javascript 格式化 HTML 字符串以正确显示 - Using Javascript to format an HTML string to display properly 我无法在流星中正确显示字符串数据 - I am unable to display string data in meteor properly 我是 html 的初学者,我的代码不起作用 - I am a beginner in html and my code is not working 我正在尝试使用 res.sendFile 在 express 中显示 html 文件 - I am trying to display a html file using res.sendFile in express
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM