Ich arbeite mit einer Passwortwächter-Website. Im Projekt wird eine jquery dataTable angezeigt, die Website, Benutzername, Passwort und Notiz enthält. Die Website-Spalte wird jedoch die URL als eine Zeile angezeigt, dass die Spaltenbreite zu groß ist, wenn die URL zu lang ist.jquery dataTable kann Text nicht brechen, wenn es sich um eine URL handelt
Aber die lustige Sache ist die Notiz Spalte der Tabelle wird Text zu brechen, wenn zu lange.
zum Beispiel:
URL(will not break): http://www.text.com/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/too_long_cannot_show/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Username:Username
Password:Password
Note(will break which depend on window's width): I am note.I am note.I am note.I am note.I am note.I am note.I am note.I am note.*100
Ich habe versucht:
create a div to contain the table, then set its max-width:1000px ==> fail
override the dataTable class, set its max-width:1000px ==> fail
irgendeine Idee?