我们如何只能在表td标签中加粗名称而不是值

ars*_*nal 12 html html-table

有没有办法让我可以制作CC Quid,应用程序编号,应用程序标题以及以粗体显示其他内容的方式,我不希望它们的值是粗体.任何建议将不胜感激..

html = html + "<table border ='0'>";
    html= html + "<tr>";
    html =html + "<td>CC Quid: " +(data.response.docs[0].c_cc_guid)+"</td></tr>";
    html =html + "<tr><td>Application Number: " +(data.response.docs[0].c_application_number)+"</td></tr>";
    html =html + "<tr><td>Application Title: " +(data.response.docs[0].c_application_title)+"</td></tr>";
    html =html + "<tr><td>Application Type Name: " +(data.response.docs[0].c_application_type_name)+"</td></tr>";
    html =html + "<tr><td>Case Mgr Name: " +(data.response.docs[0].c_case_mgr_name)+"</td></tr>";
    html =html + "<tr><td>Filed Date: " +(data.response.docs[0].c_filed_date)+"</td></tr>";
    html =html + "<tr><td>Lead Atny Name: " +(data.response.docs[0].c_lead_atny_name)+"</td></tr>";
    html =html + "</table>";
Run Code Online (Sandbox Code Playgroud)

Ord*_*Ord 26

围绕你想要大胆的东西:

<span style="font-weight:bold">Your bold text</span>
Run Code Online (Sandbox Code Playgroud)

这将进入你的<td>标签.

  • 为什么不<td style ="font-weight:bold">? (8认同)
  • “我们如何才能在表 td 标签中加粗*仅名称*而不是值” (2认同)