2017-05-14 1 views
0

Ich versuche, eine Einstellungen für mein WordPress-Plugin zu bauen, ich möchte mein Bild neben der Tabelle auf der rechten Seite angezeigt werden, aber es geht immer nach unten können Sie mir helfen um das zu beheben?Bootstrap Grid-System funktioniert nicht auf Tabellen

<form action="options.php" method="post">'); 
<div class="row"> 
    <div class="col-md-8"> 
    <table class="form-table"> 
     <tbody> 
      <tr> 
      <th scope="row"><label for="">test</label></th> 
      <td> 
       <input name="x'.$key.'" value="'.$option['x'.$key].'" width="50px"> 
       <button type="button" onclick="position('.$key.')" class="button button-primary">Create/Edit</button> 
       <p class="description" id="">some discription</p> 
      </td> 
      </tr> 
      <tr> 
      <th scope="row"><label for="">test</label></th> 
      <td> 
       <input name="myinput" value="'.$option['x'.$key].'" width="50px"> 
       <button type="button" onclick="position('.$key.')" class="button button-primary">Create/Edit</button> 
       <p class="description" id="">some discription</p> 
      </td> 
      </tr> 
      .... 
     </tbody> 

    </table> 
    </div> 

    <div class="col-md-4"> 
    <div id="special"> 
     <canvas id="the-canvas" style="border:1px solid black"></canvas> 
    </div> 
    </div> 
</div> 

// outputs the WP submit button html 
//@submit_button(); 

+0

Können Sie eine JSFiddle zeigt das Problem? Sind Sie sicher, dass Sie auf einem mittleren oder höheren Bildschirm sehen? – rybo111

+0

Wir müssten den vollständigen Code auf einem Codepen oder ähnlichem sehen. Es wäre jedoch am nützlichsten, die aktuelle Seite zu sehen. –

Antwort

0

ein div Element hinzufügen mit "Behälter" oder "Behälter-fluid" Klasse nach Formelement (<form action="options.php" method="post">)

wie: <form action="options.php" method="post"><div class="container"> ............... </div></form>

OR

wie: <form action="options.php" method="post"><div class="container-fluid"> ............... </div></form>

Verwandte Themen