大家 有一些奇怪的在我的网页,因为它每个控制器删除多余的线条ASP.Net
<asp:Label ID="ll" Class="question_bold" runat="server" Text="label 1" Visible="false"></asp:Label>
<asp:RequiredFieldValidator runat="server" id="lln" controltovalidate="Textbox" errormessage="* Required" Font-Bold="True" ForeColor="Red" SetFocusOnError="True" Display="Dynamic" />
<asp:TextBox ID="Textbox" runat="server" Visible ="false" Width="350px" ></asp:TextBox>
<asp:LinkButton ID="check" CssClass="myclass" visible="false" runat="server" OnClick="check_Click">Check</asp:LinkButton>
后会自动将新线和这里的CSS代码:
a.myclass{ color: #FF0000; text-decoration: none; }
a.myclass:hover { text-decoration: none; }
.question_bold {
font-weight: bold;
border: 1px solid #e6e6e6;
border-radius: 10px;
background-color: #e6e6e6;
height: 25px;
width: 100%;
display: block;
}
我试过改变显示,甚至从ASP删除整个CSS,但仍然是相同的 我需要文本框,字段验证器,链接按钮,以在同一行.... 任何想法?!
你有布局?你能包括一张图片什么是不需要的线? – Valkyrie
该文本框应该有链接按钮旁边的“检查”,然后现场验证器 –
浏览器开发工具是要走的路。只是“检查元素”,看看会发生什么 – jazzcat