2 回答

TA貢獻(xiàn)1797條經(jīng)驗(yàn) 獲得超6個(gè)贊
這是一種方法。
我注意到你的所有課程都已經(jīng)在<h5>標(biāo)簽內(nèi),所以它們已經(jīng)是粗體了。
我刪除了這些標(biāo)簽,并tds使用此 css 將代碼中的所有內(nèi)容設(shè)為粗體:
td {
font-weight: bold;
}
最后,如何顯示數(shù)據(jù)取決于您。當(dāng)您稍后從數(shù)據(jù)庫(kù)中檢索數(shù)據(jù)時(shí),您將必須使用一些不屬于 HTML 一部分的編程。
td {
font-weight: bold;
}
<div class="classes_wrapper">
<div class="classes_wrapper_title"><h4>COURSES I AM TAKING</h4></div>
<div id="my_classes">
<table class="classes">
<tr id="course_title">
<td>Cal & Analytic Geometry</td>
</tr>
<tr id="course_info">
<td>MA 2330/ Section 001</td>
</tr>
<tr id="time_frame">
<td>August 31, 2020 - December 22, 2020</td>
</tr>
<tr id="course_time">
<td>Tue,Thu 01:00PM - 02:30PM</td>
</tr>
<tr id="course_setting">
<td>REMOTE</td>
</tr>
</table>
</div>
</div>

TA貢獻(xiàn)1874條經(jīng)驗(yàn) 獲得超12個(gè)贊
<div class="classes_wrapper">
<div class="classes_wrapper_title"><h4>COURSES I AM TAKING</h4></div>
<div id="my_classes">
<table class="classes">
<tr id="course_title">
<td>Cal & Analytic Geometry</td>
</tr>
<tr id="course_info">
<td>MA 2330/ Section 001</td>
</tr>
<tr id="time_frame">
<td>August 31, 2020 - December 22, 2020</td>
</tr>
<tr id="course_time">
<td>Tue,Thu 01:00PM - 02:30PM</td>
</tr>
<tr id="course_setting">
<td>REMOTE</td>
</tr>
</table>
</div>
</div>
and
td {
font-weight: bold;
}
添加回答
舉報(bào)