服务器标签格式不正确

时间:2021-03-23 09:16:52

标签: c# webforms

它说我的服务器标签格式不正确

<asp:TextBox ID="TextBox1" runat="server" placeholder="Fullname"style="width:400px; height:25px; font-family:'Century Gothic'; -webkit-border-radius:5px; border-style:none; margin-left:10px;">
</asp:TextBox>

1 个答案:

答案 0 :(得分:1)

您可以尝试以下操作:

<asp:TextBox ID="TextBox1" runat="server" placeholder="Fullname" style="width:400px; height:25px; font-family:'Century Gothic'; -webkit-border-radius:5px; border-style:none; margin-left:10px;">
</asp:TextBox>

看到 placeholderstyle 的结尾双引号之间没有空格。