Bonjour,
dans une application en MVC, j'affiche un résultat avec un tableau html. Je souhaite afficher les bordures autour de chaque cellule. Malgré le code, y a aucune bordure. Merci de me dire pourquoi.
Pas possible de fournir un lien car c'est du local.
Code html : 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58 <!DOCTYPE html> <html> <head> <base href="http://dev.tickets.fr"> <!-- below, css for Bootstrap--> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> <link rel="stylesheet" href="/assets/style.css" media="all" type="text/css"> <!-- of js scripts for Bootstrap --> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> </head> <body> <ul class="nav nav-tabs"> <!-- le menu (bootstrap) --> </ul> <table style="border:1px;border-color:black;"> <tr> <td> <a href="?action=DispInfoLicenseByArray&appli_name=JIRA Global Instance&sesa=1000 "> (JIRA Global Instance & 1000) </a> </td> </tr> <tr> <td> <a href="?action=DispInfoLicenseByArray&appli_name=MSTT&sesa=100008 "> (MSTT & 100008) </a> </td> <td> <a href="?action=DispInfoLicenseByArray&appli_name=TeamForge_Full&sesa=100008 "> (TeamForge_Full & 100008) </a> </td> <td> <a href="?action=DispInfoLicenseByArray&appli_name=GitHub_Enterprise&sesa=100008 "> (GitHub_Enterprise & 100008) </a> </td> <td> <a href="?action=DispInfoLicenseByArray&appli_name=Visual_Studio_MSDN_Professional&sesa=100008 "> (Visual_Studio_MSDN_Professional & 100008) </a> </td> <td> <a href="?action=DispInfoLicenseByArray&appli_name=Rational_ClearQuest&sesa=100008 "> (Rational_ClearQuest & 100008) </a> </td> </tr> </table> </body> </html>
style.css :
Code css : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 table, th, td { border-collapse: collapse; border:1px; border-color: black; } th, td { padding-left:15px; padding-right:15px; padding-top:5px; font-weight:bold; } ...
J'ai testé par ailleurs : le fichier CSS est bien pris en compte par le fichier qui contient la table...
Partager