2016-07-27 3 views
1

私はインターネット上でブートストラップのために見つけたカスタムテーマを使用しています。私がグリッドシステムの新しい「行」を追加すると、ちょっと混乱してしまいます。 私は間違っているとは確信していませんが、私はそれが欲しいものを表示するように見えないので、あなたは、私はそれを Pic example 1ブートストラップで私の要素の一部が表示されないのはなぜですか?

とブラウザのスクロールバーを与えるために喜んで私を助けることができるように、さらに情報が必要な場合、私は(あなたがスクロールすることができ、私は

を以下の参照ページをロードするときので、表示さダウン)

もう一度そうしなければならなかったことが分かります

pic example 2

しかし、誰かが私を助けることができるなら、私は私のコードを共有します、私はexprigencedプルガラマーではありませんが、私はそこに着くことを試みています。ここ は

<?php session_start(); 
//error_reporting(0); 
//ini_set('display_errors', 0); 
?> 
<!doctype html> 
<html lang="en" > 
<head> 
    <meta charset="UTF-8"> 
    <meta name="viewport" > 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">  



    <link rel="stylesheet" href="style/reset.css"> <!-- CSS reset --> 
    <link rel="stylesheet" href="style/style.css"> <!-- Resource style --> 
    <script src="js/modernizr.js"></script> <!-- Modernizr --> 

    <title>Overblog</title> 
</head> 
<body > 
    <header class="cd-main-header"> 
     <a href="#0" class="cd-logo"><img src="img/cd-logo.svg" alt="Logo"></a> 

     <div class="cd-search is-hidden"> 
      <form action="#0"> 
       <input type="search" placeholder="Search..."> 
      </form> 
     </div> <!-- cd-search --> 

     <a href="#0" class="cd-nav-trigger">Menu<span></span></a> 

     <nav class="cd-nav"> 
      <ul class="cd-top-nav"> 

       <li class="has-children account"> 

        <ul> 


        </ul> 
       </li> 
      </ul> 
     </nav> 
    </header> <!-- .cd-main-header --> 

    <main class="cd-main-content"> 
     <nav class="cd-side-nav"> 
      <ul> 
       <li class="cd-label">Main</li> 
       <li class="has-children overview"> 
        <a href="#0">Blog</a> 

        <ul> 
         <li><a href="#0">Latest news</a></li> 
         <li><a href="#0">Public Test Region</a></li> 
         <li><a href="#0">RedPost (Redit)</a></li> 
        </ul> 
       </li> 
       <li class="has-children notifications active"> 


       <li class="has-children comments"> 
        <a href="#0">Guides</a> 

       </li> 

       <li class="has-children users"> 
        <a href="#0">Hereos</a> 

       </li> 

      </ul> 

     </nav> 

    <style> 

body 
{ 
    font-family: 'Open Sans', sans-serif; 
} 

.fb-profile img.fb-image-lg{ 
    z-index: 0; 
    width: 100%; 
    margin-bottom: 10px; 
} 

.fb-image-profile 
{ 
    margin: -90px 10px 0px 50px; 
    z-index: 9; 
    width: 20%; 
} 

@media (max-width:768px) 
{ 

.fb-profile-text>h1{ 
    font-weight: 700; 
    font-size:16px; 
} 

.fb-image-profile 
{ 
    margin: -45px 10px 0px 25px; 
    z-index: 9; 
    width: 20%; 
} 
} 
h2{font-size:40px; 
     } 
     </style>  
    <div class="content-wrapper"> 
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> 
<div class="container"> 
    <div class="row">     
    <?php 
//show users code. 
      define('SITE_ROOT', dirname(__FILE__)); 
echo "<br/>"; 
       require SITE_ROOT . '\includes\loadHeroProfile.php'; 
    ?> 
    </div> 
<div class="row"> 
     <div class='col-lg-4'> 
<ul class="list-group"> 
    <li class="list-group-item">Cras justo odio</li> 
    <li class="list-group-item">Dapibus ac facilisis in</li> 
    <li class="list-group-item">Morbi leo risus</li> 
    <li class="list-group-item">Porta ac consectetur ac</li> 
    <li class="list-group-item">Vestibulum at eros</li> 
</ul> 
    </div> 

    </div> 
</div> <!-- /container --> 

     </div> 

    </main> <!-- .cd-main-content --> 
<script src="scripts/jquery-2.1.4.js"></script> 
<script src="scripts/jquery.menu-aim.js"></script> 
<script src="scripts/main.js"></script> <!-- Resource jQuery --> 
</body> 
</html> 

viewHero.php

ためのコードであり、ここでloadHeroProfile.php

<?php 
//show users code. 


require SITE_ROOT . '\includes\db_connect.php'; 
//create connection and check it 
global $connect; 
$ids = intval($_GET['ids']); 

$result = $conn->prepare("SELECT id,nickname,avatar,name,age,occupation,operations,affiliation,difficulty,ability,tips,story FROM heroes WHERE id=$ids"); 
$result->execute(); 
while ($row = $result->fetch(PDO::FETCH_ASSOC)) { 
    $id = $row["id"]; 
    $nickname = $row["nickname"]; 
    $avatar = $row["avatar"]; 
    $name = $row["name"]; 
    $age = $row["age"]; 
    $occ = $row["occupation"]; 
    $opp = $row["operations"]; 
    $aff = $row["affiliation"]; 
    $diff = $row["difficulty"]; 
    $ability = $row["ability"]; 
    $tips = $row["tips"]; 
    $story = $row["story"]; 

    $avatar = "./img/" . $avatar; 
    echo " <div class='fb-profile'> "; 
    echo " <img align='left' class='fb-image-lg' src='./img/Untitled.png' alt='Profile image example'/> "; 
    echo " <img align='left' class='fb-image-profile thumbnail' src=". $avatar ." alt='Profile image example' /> "; 
    echo "  <div class='fb-profile-text'> "; 
    echo "   <h2>" . $nickname . "</h2><br/> "; 
    echo "   <p>" . $name . "</p> "; 
    echo "  </div> "; 
    echo " </div> "; 

    } 
?> 

である私は、この問題を修正するために何ができますか? EDIT THE FINAL HTMLのCODE:

<!doctype html> 
<html lang="en" > 
<head> 
    <meta charset="UTF-8"> 
    <meta name="viewport" > 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">  



    <link rel="stylesheet" href="style/reset.css"> <!-- CSS reset --> 
    <link rel="stylesheet" href="style/style.css"> <!-- Resource style --> 
    <script src="js/modernizr.js"></script> <!-- Modernizr --> 

    <title>Overblog</title> 
</head> 
<body > 
    <header class="cd-main-header"> 
     <a href="#0" class="cd-logo"><img src="img/cd-logo.svg" alt="Logo"></a> 

     <div class="cd-search is-hidden"> 
      <form action="#0"> 
       <input type="search" placeholder="Search..."> 
      </form> 
     </div> <!-- cd-search --> 

     <a href="#0" class="cd-nav-trigger">Menu<span></span></a> 

     <nav class="cd-nav"> 
      <ul class="cd-top-nav"> 

       <li class="has-children account"> 

        <ul> 


        </ul> 
       </li> 
      </ul> 
     </nav> 
    </header> <!-- .cd-main-header --> 

    <main class="cd-main-content"> 
     <nav class="cd-side-nav"> 
      <ul> 
       <li class="cd-label">Main</li> 
       <li class="has-children overview"> 
        <a href="#0">Blog</a> 

        <ul> 
         <li><a href="#0">Latest news</a></li> 
         <li><a href="#0">Public Test Region</a></li> 
         <li><a href="#0">RedPost (Redit)</a></li> 
        </ul> 
       </li> 
       <li class="has-children notifications active"> 


       <li class="has-children comments"> 
        <a href="#0">Guides</a> 

       </li> 

       <li class="has-children users"> 
        <a href="#0">Hereos</a> 

       </li> 

      </ul> 

     </nav> 

    <style> 

body 
{ 
    font-family: 'Open Sans', sans-serif; 
} 

.fb-profile img.fb-image-lg{ 
    z-index: 0; 
    width: 100%; 
    margin-bottom: 10px; 
} 

.fb-image-profile 
{ 
    margin: -90px 10px 0px 50px; 
    z-index: 9; 
    width: 20%; 
} 

@media (max-width:768px) 
{ 

.fb-profile-text>h1{ 
    font-weight: 700; 
    font-size:16px; 
} 

.fb-image-profile 
{ 
    margin: -45px 10px 0px 25px; 
    z-index: 9; 
    width: 20%; 
} 
} 
h2{font-size:40px; 
     } 
     </style>  
    <div class="content-wrapper"> 
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> 
<div class="container"> 
    <div class="row">     
    <br/> <div class='fb-profile'>  <img align='left' class='fb-image-lg' src='./img/Untitled.png' alt='Profile image example'/>  <img align='left' class='fb-image-profile thumbnail' src=./img/bastion.png alt='Profile image example' />   <div class='fb-profile-text'>    <h2>Bastion</h2><br/>    <p>SST Laboratories Siege Automaton E54, "Bastion"</p>   </div> </div>  </div> 
<div class="row"> 
     <div class='col-lg-4'> 
<ul class="list-group"> 
    <li class="list-group-item">Cras justo odio</li> 
    <li class="list-group-item">Dapibus ac facilisis in</li> 
    <li class="list-group-item">Morbi leo risus</li> 
    <li class="list-group-item">Porta ac consectetur ac</li> 
    <li class="list-group-item">Vestibulum at eros</li> 
</ul> 
    </div> 

    </div> 
</div> <!-- /container --> 

     </div> 

    </main> <!-- .cd-main-content --> 
<script src="scripts/jquery-2.1.4.js"></script> 
<script src="scripts/jquery.menu-aim.js"></script> 
<script src="scripts/main.js"></script> <!-- Resource jQuery --> 
</body> 
</html> 

編集スタイリングを要求されるように:私が作ったか、これには触れませんでした、インターネット reset.css

/* http://meyerweb.com/eric/tools/css/reset/ 
    v2.0 | 20110126 
    License: none (public domain) 
*/ 

html, body, div, span, applet, object, iframe, 
h1, h2, h3, h4, h5, h6, p, blockquote, pre, 
a, abbr, acronym, address, big, cite, code, 
del, dfn, em, img, ins, kbd, q, s, samp, 
small, strike, strong, sub, sup, tt, var, 
b, u, i, center, 
dl, dt, dd, ol, ul, li, 
fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td, 
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary, 
time, mark, audio, video { 
    margin: 0; 
    padding: 0; 
    border: 0; 
    font-size: 100%; 
    font: inherit; 
    vertical-align: baseline; 
} 
/* HTML5 display-role reset for older browsers */ 
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, main { 
    display: block; 
} 
body { 
    line-height: 1; 
} 
ol, ul { 
    list-style: none; 
} 
blockquote, q { 
    quotes: none; 
} 
blockquote:before, blockquote:after, 
q:before, q:after { 
    content: ''; 
    content: none; 
} 
table { 
    border-collapse: collapse; 
    border-spacing: 0; 
} 

スタイル以上の無料tempalteです ノート.css検索するhere

投稿するには3kマークが合格するため、投稿できません。

+0

PHPファイルとは対照的に、我々は、最終的なHTMLを見ることができればトラブルシューティングするために容易になるだろう。 –

+0

元の投稿を編集しました。その下に私のhtmlファイルの最終出力があります – Demeteor

+0

アクティブなソースを全く見ることはできますか?上記のコードは、カスタムスタイル(reset.css、style.css)を参照して、コード全体にどのように影響するかを示しません。また、あなたが表示したスクリーンショットに対して、あなたが望む結果が何であるかを明確に示すのに役立ちます。 –

答えて

1

あなたが提供したHTMLは、エラーと矛盾しています。これらのエラーが予期しないレンダリングの問題を引き起こさないようにするために、テンプレートが提供したコードを確認することを強くお勧めします。

https://jsfiddle.net/embed/1pfz7yg2/show/

をあなたがここにHTML/CSSを見ることができます:私はあなたの希望の出力を理解して何からhttps://jsfiddle.net/embed/1pfz7yg2/

を、言われて、私はJSFiddleの展示のは、ここでHTMLを修正し作成していること

左側のナビゲーションを静的にしたいとします。それはケースであること、CSSの最も関連性の高いビットは次のとおりです。

.cd-side-nav { position: fixed; }

+0

ちょっと助けてくれてありがとう、他のHTMLファイルに同じエラーがあります。 ありがとうございます – Demeteor

関連する問題