puoi anche assegnare così:
codice:
table {
 border-left: 1px solid #000;
 border-top: 1px solid #000;
}
table td, table th {
 border-right: 1px solid #000;
 border-bottom: 1px solid #000;
}