#t1{ table-layout:fixed;}#t1 td{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;}
The above is CSS
1 <Table width = "670" align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "tyouhyou_11pt" id = "T1"> 2 <tr Height = "30" class = "tyouhyou_8pt" bgcolor = "lightcyan"> 3 <TD align = "center" width = "120" bgcolor = "# bbffff" style =" border: 1px solid black; "> guest name </TD> 4 <TD align =" center "width =" 70 "bgcolor =" # bbffff "style =" border: 1px solid black; border-left: 0px; "> elephant year and month </TD> 5 <TD align =" center "width =" 80 "bgcolor =" # bbffff "style =" border: 1px solid black; border-left: 0px; "> dispatch member </TD> 6 <TD align =" center "width =" 60 "bgcolor =" # bbffff "style =" border: 1px solid black; border-left: 0px; "> zookeeper CD </TD> 7 <TD align =" center "width =" 100 "bgcolor =" # bbffff "style =" border: 1px solid black; border-left: 0px; "> daily subscription </TD> 8 <TD align =" center "width =" 100 "bgcolor =" # bbffff "style =" border: 1px solid black; border-left: 0px; "> hour row day </TD> 9 10 <TD align =" center "width =" 120 "bgcolor =" # bbffff "style =" border: 1px solid black; border-left: 0px; "> pay first <TD align =" center "width =" 20 "bgcolor =" # bbffff "style =" border: 1px solid black; border-left: 0px; "> & nbsp; </TD> 13 </tr> 14 15 <s: iterator id =" hakenkeiyakuconfirmvo. datalist "value =" hakenkeiyakuconfirmvo. datalist "> 16 <tr Height =" 30 "class =" tyouhyou_8pt "> 17 <TD align =" Left "width =" 140 "style =" border-left: 1px solid black; border-bottom: 1px solid black; 18 border-Right: 1px solid black; "Title =" <s: property value = "confirm_ko_name"/> "> 19 & nbsp; <s: property value = "confirm_ko_name"/> 20 </TD> 21 <TD align = "center" width = "70" style = "border-left: 0px; border-bottom: 1px solid black; 22 border-Right: 1px solid black; "> 23 & nbsp; <s: property value = "confirm_year_month"/> 24 </TD> 25 <TD align = "center" width = "80" style = "border-left: 0px; border-bottom: 1px solid black; 26 Border-Right: 1px solid black; "> 27 & nbsp; <s: property value = "confirm_staff_name"/> 28 </TD> 29 <TD align = "center" width = "60" style = "border-left: 0px; border-bottom: 1px solid black; 30 border-Right: 1px solid black; "> 31 & nbsp; <s: property value = "confirm_staff_cd"/> 32 </TD> 33 <TD align = "center" width = "100" style = "border-left: 0px; border-bottom: 1px solid black; 34 border-Right: 1px solid black; "> 35 & nbsp; <s: property value = "confirm_order_time"/> 36 </TD> 37 <TD align = "center" width = "100" style = "border-left: 0px; border-bottom: 1px solid black; 38 border-Right: 1px solid black; "> 39 & nbsp; <s: property value = "confirm_semd_time"/> 40 </TD> 41 42 <TD align = "center" width = "120" style = "border-left: 0px; border-bottom: 1px solid black; 43 border-Right: 1px solid black; "Title =" <s: property value = "confirm_sendmailaddr"/> "> 44 & nbsp; <s: property value = "confirm_sendmailaddr"/> 45 </TD> 46 47 <TD align = "center" width = "20" style = "border-left: 0px; border-bottom: 1px solid black; 48 border-Right: 1px solid black; "> 49 <s: checkbox name =" hakensakikanri. selectedstaff "id =" hakensakikanri. selectedstaff "onclick =" checkedyesorno (); "> 50 </s: checkbox> 51 <input type = "hidden" name = "selectedstaff" id = "selectedstaff" value = "<s: property value = "confirm_staff_cd"/> "/> 52 <input type =" hidden "name =" selectedkocds "id =" selectedkocds "value =" <s: property value = "confirm_ko_cd"/> "/> 53 <input type =" hidden "name =" selectedyearmonths "id =" selectedyms "value =" <s: property value = "confirm_year_month1"/> "/> 54 <input type =" hidden "name =" selectedordertimes "id =" selectedots "value =" <s: property value = "confirm_order_time"/> "/> 55 </TD> 56 </tr> 57 </S: iterator> 58 </table>
The red mark above indicates the column in which all data appears when the mouse moves up, but one more title attribute.
To sum up, you only need to mark the CSS and code in red.
When the data in the table is too long and exceeds the column width, no line breaks and ellipsis are generated. move the cursor up to display all the data.