我有一个日志条目表,我想用两列显示:时间戳和日志条目本身。桌子有固定的宽度。我希望时间戳列能够拉伸以适合时间戳本身的文本,并且不再继续,然后让消息占据表的其余宽度。我希望时间戳文本始终为一行,并让日志消息环绕。我有那部分工作,但对于我的一生,我无法弄清楚如何使列宽度适合时间戳的文本宽度。我可以设置固定的像素宽度,但这似乎不太确定。
\n\n编辑:用代码示例更新:(http://jsfiddle.net/GH7jj/7/)
\n\n<div class="MainDiv">\n<table class="LogTableStyle">\n<tr>\n <th>Time</th>\n <th>Message</th>\n</tr>\n<tr>\n <td class="LogTime">11/07/2012 07:38:14</td>\n <td class="LogMessage">There was something that happened at this point. This is a pretty long message though. It should be wrapping around. I want the timestamp to be on that one line while giving this message as much room as possible. That\'d be cool.</td>\n</tr>\n</table>\n</div>\xe2\x80\x8b\nRun Code Online (Sandbox Code Playgroud)\n\n还有CSS:
\n\n.MainDiv {\n min-width:300px;\n max-width:500px;\n height:100%;\n background-color:#F0F0FF;\n margin:auto;\n}\n.LogTableStyle {\n width:97%;\n margin:auto;\n border-collapse:collapse;\n table-layout:fixed;\n}\n.LogTableStyle th {\n font-family:Verdana, Geneva, sans-serif;\n font-size:14px;\n background-color:#333;\n color:#FFF;\n border:solid 1px …Run Code Online (Sandbox Code Playgroud) 我有一个带有designer.cs文件的Web应用程序.由于它们是自动生成的,我不想将它们添加到源代码控制中(或者我?).但是,项目文件会查找它们,并从SVN错误中重新获取,直到您删除对designer.cs的引用,然后转换为Web应用程序,这是一个很大的痛苦.
我应该将它们添加到源代码管理中吗?我可以从项目文件中删除引用吗?