当我在WordPress中复制并粘贴HTML代码时,表格单元格中的换行符在保存时会转换为⟨br⁄⟩。我必须删除单元格内容中的所有换行符,否则在段落,列表项等之间有多余的空格。这会使大块内容难以编辑,因为它们被混在一起了。
是否存在防止在单元格内容中任意插入⟨br⁄ insertion的选项或解决方法?还是有办法将表格中的换行符转换为false
我也希望能有一种变通方法来减少代码并提高效率。
我一直在WordPress中寻找在线插件来选择和删除所有HTML文件,但找不到它们。
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:100%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Asokoro SEC</th>
</tr>
</thead>
<body>
<tr>
<td>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:100%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Number of Chairs</th>
<th>Number of Tables</th>
<th>Number of Classroom Boards</th>
<th>Ceiling Structure: Status</th>
<th>Protection from Rain: Status</th>
</tr>
</thead>
<tbody>
<caption>CLASSROOM ACCESSMENT</caption>
<tr>
<td>100</td>
<td>100</td>
<td>19</td>
<td>Full Ceiling</td>
<td>Full Protection</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:70%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Floor Finishing</th>
<th>First Aid Boxs</th>
<th>Fire Extinguishers</th>
<th>Illumination</th>
<th>Ventilation</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mable Tiles</td>
<td>TRUE</td></td>
<td>TRUE</td>
<td>LED Bulb</td>
<td>Open Roofs</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:100%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Number of Learning Subjects Per Day: Status</th>
<th>Number of Missed Subjects Per Day: Status</th>
<th>Curriculum Assessments</th>
</tr>
</thead>
<tbody>
<caption>TIMETABLE ACCESSMENT</caption>
<tr>
<td>50</td>
<td>40</td>
<td><p>International Standard</p><p>Ratings:9⁄10</p></td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Ratio of One Teacher to Assigned Subjects</th>
<th>Teachers Qualifications in Respect to Assigned Subject</th>
<th>Frequency of Knowledge Updates/Teachers Training</th>
</tr>
</thead>
<tbody>
<caption>TEACHER ACCESSMENT</caption>
<tr>
<td>One Teacher to One Subject</td>
<td>Qualified Teachers</td>
<td>Sufficient Updates/Teacher Training</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Types of Toilet</th>
<th>Daily Cleanness Level of Toilet</th>
<th>Number of Employed Cleaners: Status</th>
</tr>
</thead>
<tbody>
<tr>
<caption>TOILET ACCESSMENT</caption>
<td><p>Water Closer</p><p>Pit</p></td>
<td>TRUE</td>
<td>30</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Frequency </th>
</tr>
</thead>
<tbody>
<caption> Frequency of Class Attendance </caption>
<tr>
<td>98%</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Ratio</th>
</tr>
</thead>
<tbody>
<tr>
<td><p>100% Closed</p><p>0percnt; Open</p></td>
</tr>
<caption>Ratio of School Open to School Closed in a Month</caption>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Air Quality </th>
</tr>
</thead>
<tbody>
<tr>
<caption>Air Quality Assessment in School Environment: Status</caption>
<td>100% Clean Air</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Road Quality</th>
</tr>
</thead>
<tbody>
<tr>
<caption>Road Network Assessment to School: Status</caption>
<td>100% good road </td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Internet Quality</th>
</tr>
</thead>
<tbody>
<tr>
<caption>Access to Internet: Status</caption>
<td>TRUE</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Computer Labs</th>
</tr>
</thead>
<tbody>
<tr>
<caption>Access to a Computer Labs</caption>
<td>TRUE</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Science Labs</th>
</tr>
</thead>
<tbody>
<tr>
<caption>Access to a Science Lab</caption>
<td>TRUE</td>
</tr>
</tbody>
</table>
<!-- Codes by HTML.am -->
<!-- CSS Code -->
<style type="text/css" scoped>
table.GeneratedTable {
width:30%;
background-color:#FFFFFF;
border-collapse:collapse;border-width:1px;
border-color:#336600;
border-style:solid;
color:#009900;
}
table.GeneratedTable td, table.GeneratedTable th {
border-width:1px;
border-color:#336600;
border-style:solid;
padding:3px;
}
table.GeneratedTable thead {
background-color:#CCFF99;
}
</style>
<!-- HTML Code -->
<table class="GeneratedTable">
<thead>
<tr>
<th>Rating: [1: Poor - 10: Excellent]</th>
<th>Ratio of On-Time to Off-Time Per Day</th>
</tr>
</thead>
<tbody>
<tr>
<caption>Access to Electricity</caption>
<td>Rating: 95⁄100</td>
<td>95 % availability </td>
</tr>
</tbody>
</table>
</td>
</tr>
我希望当我直接在浏览器中运行HTML文件且没有在单元格内容中任意插入⟨br⁄时,WordPress输出看起来像吗?