- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <title>datatable responsive</title>
- <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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
- <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css">
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
- <thead>
- <tr>
- <th>First name</th>
- <th>Last name</th>
- <th>Position</th>
- <th>Office</th>
- <th>Age</th>
- <th>Start date</th>
- <th>Salary</th>
- <th>Extn.</th>
- <th>E-mail</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Tiger</td>
- <td>Nixon</td>
- <td>System Architect</td>
- <td>Edinburgh</td>
- <td>61</td>
- <td>2011/04/25</td>
- <td>$320,800</td>
- <td>5421</td>
- <td></td>
- </tr>
- <tr>
- <td>Garrett</td>
- <td>Winters</td>
- <td>Accountant</td>
- <td>Tokyo</td>
- <td>63</td>
- <td>2011/07/25</td>
- <td>$170,750</td>
- <td>8422</td>
- <td></td>
- </tr>
- <tr>
- <td>Ashton</td>
- <td>Cox</td>
- <td>Junior Technical Author</td>
- <td>San Francisco</td>
- <td>66</td>
- <td>2009/01/12</td>
- <td>$86,000</td>
- <td>1562</td>
- <td></td>
- </tr>
- <tr>
- <td>Cedric</td>
- <td>Kelly</td>
- <td>Senior Javascript Developer</td>
- <td>Edinburgh</td>
- <td>22</td>
- <td>2012/03/29</td>
- <td>$433,060</td>
- <td>6224</td>
- <td></td>
- </tr>
- <tr>
- <td>Airi</td>
- <td>Satou</td>
- <td>Accountant</td>
- <td>Tokyo</td>
- <td>33</td>
- <td>2008/11/28</td>
- <td>$162,700</td>
- <td>5407</td>
- <td></td>
- </tr>
- <tr>
- <td>Brielle</td>
- <td>Williamson</td>
- <td>Integration Specialist</td>
- <td>New York</td>
- <td>61</td>
- <td>2012/12/02</td>
- <td>$372,000</td>
- <td>4804</td>
- <td></td>
- </tr>
- <tr>
- <td>Herrod</td>
- <td>Chandler</td>
- <td>Sales Assistant</td>
- <td>San Francisco</td>
- <td>59</td>
- <td>2012/08/06</td>
- <td>$137,500</td>
- <td>9608</td>
- <td></td>
- </tr>
- <tr>
- <td>Rhona</td>
- <td>Davidson</td>
- <td>Integration Specialist</td>
- <td>Tokyo</td>
- <td>55</td>
- <td>2010/10/14</td>
- <td>$327,900</td>
- <td>6200</td>
- <td></td>
- </tr>
- <tr>
- <td>Colleen</td>
- <td>Hurst</td>
- <td>Javascript Developer</td>
- <td>San Francisco</td>
- <td>39</td>
- <td>2009/09/15</td>
- <td>$205,500</td>
- <td>2360</td>
- <td></td>
- </tr>
- <tr>
- <td>Sonya</td>
- <td>Frost</td>
- <td>Software Engineer</td>
- <td>Edinburgh</td>
- <td>23</td>
- <td>2008/12/13</td>
- <td>$103,600</td>
- <td>1667</td>
- <td></td>
- </tr>
- <tr>
- <td>Jena</td>
- <td>Gaines</td>
- <td>Office Manager</td>
- <td>London</td>
- <td>30</td>
- <td>2008/12/19</td>
- <td>$90,560</td>
- <td>3814</td>
- <td></td>
- </tr>
- <tr>
- <td>Quinn</td>
- <td>Flynn</td>
- <td>Support Lead</td>
- <td>Edinburgh</td>
- <td>22</td>
- <td>2013/03/03</td>
- <td>$342,000</td>
- <td>9497</td>
- <td></td>
- </tr>
- <tr>
- <td>Charde</td>
- <td>Marshall</td>
- <td>Regional Director</td>
- <td>San Francisco</td>
- <td>36</td>
- <td>2008/10/16</td>
- <td>$470,600</td>
- <td>6741</td>
- <td></td>
- </tr>
- <tr>
- <td>Haley</td>
- <td>Kennedy</td>
- <td>Senior Marketing Designer</td>
- <td>London</td>
- <td>43</td>
- <td>2012/12/18</td>
- <td>$313,500</td>
- <td>3597</td>
- <td></td>
- </tr>
- <tr>
- <td>Tatyana</td>
- <td>Fitzpatrick</td>
- <td>Regional Director</td>
- <td>London</td>
- <td>19</td>
- <td>2010/03/17</td>
- <td>$385,750</td>
- <td>1965</td>
- <td></td>
- </tr>
- <tr>
- <td>Michael</td>
- <td>Silva</td>
- <td>Marketing Designer</td>
- <td>London</td>
- <td>66</td>
- <td>2012/11/27</td>
- <td>$198,500</td>
- <td>1581</td>
- <td></td>
- </tr>
- </tbody>
- </table>
- </div>
-
- </div>
- </div>
-
-
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <!-- Latest compiled and minified JavaScript -->
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
- <script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
-
- <script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#datatable-responsive').DataTable( {
-
- responsive: true,
- details: false
- } );
- } );
- </script>
- </body>
- </html>
This is the code in hosting :
When i resize the culumns not hide and not appears the plus button...