width and/or height in tables are not standard anymore; as Ianzz says, they are depreciated. Instead the best way to do this is to have a block element inside your table cell that will hold the cell open to your desired size:
Content |
css
.content { width: 1000px;}.left_menu { background: none repeat scroll 0 0 #333333; border-radius: 5px 5px 5px 5px; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; padding: 5px; width: 200px;}.menu_item { background: none repeat scroll 0 0 #CCCCCC; border-bottom: 1px solid #999999; border-radius: 5px 5px 5px 5px; border-top: 1px solid #FFFFCC; cursor: pointer; padding: 5px;}
原文地址: