html – 我们如何只加粗表td标签中的名称而不是值

栏目: Html · 发布时间: 6年前

内容简介:翻译自:https://stackoverflow.com/questions/6379930/how-we-can-bold-only-the-name-in-table-td-tag-not-the-value
有什么办法可以让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>";

围绕你想要大胆的东西:

<span style="font-weight:bold">Your bold text</span>

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

翻译自:https://stackoverflow.com/questions/6379930/how-we-can-bold-only-the-name-in-table-td-tag-not-the-value


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

编码

编码

[美] Charles Petzold / 左飞、薛佟佟 / 电子工业出版社 / 2010 / 55.00元

本书讲述的是计算机工作原理。作者用丰富的想象和清晰的笔墨将看似繁杂的理论阐述得通俗易懂,你丝毫不会感到枯燥和生硬。更重要的是,你会因此而获得对计算机工作原理较深刻的理解。这种理解不是抽象层面上的,而是具有一定深度的。一起来看看 《编码》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

html转js在线工具
html转js在线工具

html转js在线工具