如何添加空格HTML输出

时间:2013-08-25 09:09:09

标签: html

在下面的代码中,我想在执行时创建空格,我希望看到空格 “HSC& nbsp”+ txthsc.Text +“& nbspHSC”+ txthscclg.Text +“

HSC和txthsc标签之间请帮忙.. string strBody =“”+                “”+

               "<div>Your name is: <b>" + txtaddress.Text + "</b></div>" +
               "<div> your Gender:<b>"+txtgender.Text+"</b></div>"+
                "<div> your skills:<b>" + txtskills.Text + "</b></div>" +
                 "<div> your experience:<b>" + txtexp.Text+ "</b></div>" +
                  "<div> your phno:<b>" + txtphno.Text + "</b></div>" +
               "<table width=\"100%\" style=\"background-color:#cfcfcf;\"><tr><td>1st Cell body data</td><td>2nd cell body data</td></tr></table>" +

              "<table width=\"500%\" style=\"background-color:#cfcfcf;\"><tr><td>BBA<b>&nbsp" + txtbba.Text + "&nbsp</td><td>HSC<b>" + txtbbaclg.Text + "</td></tr></table>" +
              **"<table width=\"500%\" style=\"background-color:#cfcfcf;\"><tr><td>HSC<b>&nbsp" + txthsc.Text + "&nbsp</td><td>HSC<b>" + txthscclg.Text + "</td>**</tr></table>" +
              "<table width=\"500%\" style=\"background-color:#cfcfcf;\"><tr><td>SSC<b>&nbsp" + txtssc.Text + "&nbsp</td><td>HSC<b>" + txtsscclg.Text + "</td></tr></table>" +
               "Resume document generated successfully."+
           "</body>" +
           "</html>";

1 个答案:

答案 0 :(得分:3)

我认为你遗失;来自&nbsp - 正确的实体 &nbsp;