我在写一个经典的ASP页面。这条线的工作原理:ASP忽略字符
Response.Write ("<tr>" & vbCrLf)
我想补充onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';
到文本。
我尝试这样做:
Response.Write ("<tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';>" & vbCrLf)
但它会导致ASP认为部分是注释。我正在寻找忽略字符或正确的代码行。
完美地工作,谢谢! – Kryptos