Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何只加粗表中的名称而不是值_Html_Html Table - Fatal编程技术网

Html 如何只加粗表中的名称而不是值

Html 如何只加粗表中的名称而不是值,html,html-table,Html,Html Table,有没有什么方法可以让我把抄送币、申请号、申请标题和其他东西用粗体表示,我不希望它们的值用粗体表示。如有任何建议,我们将不胜感激 html = html + "<table border ='0'>"; html= html + "<tr>"; html =html + "<td>CC Quid: " +(data.response.docs[0].c_cc_guid)+"</td></tr>"; html =ht

有没有什么方法可以让我把抄送币、申请号、申请标题和其他东西用粗体表示,我不希望它们的值用粗体表示。如有任何建议,我们将不胜感激

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>";
html=html+”;
html=html+“”;
html=html+“CC Quid:”+(data.response.docs[0].c_CC_guid)+”;
html=html+“应用程序编号:”+(data.response.docs[0].c_应用程序编号)+”;
html=html+“应用程序标题:”+(data.response.docs[0].c_应用程序标题)+”;
html=html+“应用程序类型名称:”+(data.response.docs[0].c_应用程序类型名称)+”;
html=html+“案例管理器名称:”+(data.response.docs[0].c_案例管理器名称)+”;
html=html+“提交日期:”+(data.response.docs[0].c_Filed_Date)+”;
html=html+“Lead Atny Name:”+(data.response.docs[0].c_Lead_Atny_Name)+”;
html=html+“”;

围绕您想要加粗的内容:

<span style="font-weight:bold">Your bold text</span>
您的粗体文本

这会进入你的
标签。

我可能误解了你的问题,如果我误解了,请道歉

如果您想用粗体显示单词“Quid”、“申请号”等,只需将它们包装在
标记中:

<strong>Quid</strong>: ...
Quid:。。。

希望有帮助

将名称包装在一个范围内,为其指定一个类并为该类指定一个样式:

<td><span class="names">Name text you want bold</span> rest of your text</td>
你可以试试这个

td.setAttribute("style", "font-weight:bold");
试试这个

.Bold{font-weight:Bold;}
普通文本
粗体文本

普通文本
我会使用下面的表格标题标记来表示表格中的文本,以使其从表格内容的其余部分中脱颖而出

 <table>

    <tr>
     <th>Dimension:</th>
    <td>98cm x 71cm</td>
    </tr>
   </table

尺寸:
98厘米x 71厘米

不适用于此,如果您确实想使用HTML,请使用
。哦,老兄……目前一直在以CRM架构师的身份编写HTML……不知道为什么您的答案不被接受……谢谢。为什么不?“我们怎么能只加粗表中的名称而不是值”
 <table>

    <tr>
     <th>Dimension:</th>
    <td>98cm x 71cm</td>
    </tr>
   </table