Bonjour
Je demande votre aide pour résoudre un problème de responsivité.
En fait j'ai un tableau que j'aimerai responsive, mais ça ne marche pas, quand je redimensionne la fenêtre, le tableau ne se redimensionne pas.
Possible de m'aider?
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 <html> <head> <title>Webslesson Demo - PHP PDO Ajax CRUD with Data Tables and Bootstrap Modals</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /> <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js"></script> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" /> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container box"> <h1 align="center">test</h1> <br /> <div class="table-responsive"> <br /> <div align="right"> <button type="button" id="add_button" data-toggle="modal" data-target="#userModal" class="btn btn-info btn-lg">Add</button> </div> <br /><br /> <table id="user_data" class="table table-bordered table-striped"> <thead> <tr> <th width="10%">Image</th> <th width="35%">First Name</th> <th width="35%">Last Name</th> <th width="10%">Edit</th> <th width="10%">Delete</th> </tr> </thead> </table> </div> </div> </body> </html>
Cordialement
Partager