后换行?
我想在 vs2010 的表标签内实现这种格式:
<tr>
<td><asp:TextBox ID="first_name" runat="server" /></td>
<td><asp:TextBox ID="last_name" runat="server" /></td>
</tr>
但是 VS 2010 是这样做的:
<tr>
<td>
<asp:TextBox ID="first_name" runat="server" /></td>
<td>
<asp:TextBox ID="last_name" runat="server" /></td>
</tr>
我已经尝试过“工具”>“选项>文本编辑器> HTML>格式化>标签特定选项: 默认设置>客户标签 &默认设置>客户端 HTML 标签 td 换行符:无、之前和之后之后,之后等等...没有任何选项可以给我我所追求的东西!
之前&预览后看起来像我想要的,但当我按 ctrl+k+d 时它不起作用!
如果事实证明 VS2010 不能做到这一点,有谁知道有一个工具可以做到这一点吗?
I want to achieve this formatting in vs2010 inside table tag:
<tr>
<td><asp:TextBox ID="first_name" runat="server" /></td>
<td><asp:TextBox ID="last_name" runat="server" /></td>
</tr>
But VS 2010 does this :
<tr>
<td>
<asp:TextBox ID="first_name" runat="server" /></td>
<td>
<asp:TextBox ID="last_name" runat="server" /></td>
</tr>
I have tried Tools > Options > Text Editor > HTML > Formatting > Tag Pecific Options :
Default Setting > Client tag
& Default Setting > Client HTML Tags td
LineBreaks: None, Before & After, After etc... no option gives me what im after!
Before & After preview looks like what I want but it doesn't work when I hit ctrl+k+d!
If it turns out VS2010 wont do it, does anyone know of a tool that will?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您尝试的方法是正确的。但是,您还需要为 asp:Textbox 标记设置换行符,该标记位于“工具”>“文本框”下。选项>文本编辑器> HTML>格式化>标签特定选项 > ASP.NET 控件。如果您看到 asp:Textbox,它可能也将换行符设置为之前和之后。
I think you are on the right track with the method you were trying. However you also need to set the Line breaks for the asp:Textbox tag as well that is under Tools > Options > Text Editor > HTML > Formatting > Tag Pecific Options > ASP.NET controls. If you see asp:Textbox it probably has Line Breaks set to before and after as well.