注释中加入图片
/**
* <img width="宽度" height="高度" src="图片url" alt="">
*/
图片URL自行挑选。我这里使用了某开源库的图片url:
/**
* The following is the design idea of this class:
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/legend.png" alt="">
*/
效果如下:
为了达到好的视觉效果,图片没有背景是最好的啦。
注释中加入表格
使用<table></table>表示表格。而在<table>标签中,又可以设置表格的格式和颜色,是否居中,左or右对齐,背景色。在表格中每增加一行就新增一个<tr>标签,并在标签中设置该行的格式。该行中每增加一列就新增一个<th>标签。比较简单,大家自己看看吧:
/**
* The following is the design idea of this class:
<table cellspacing=8 cellpadding=0 ">
* <tr style="background-color: rgb(204, 204, 255);">
* <th align=left>class
* <th align=left>name
* <th align=left>sex
* <th align=left>age
* </table>
*/
我举个例子给大家看看:
/**
* The following is the design idea of this class:
<table border=0 cellspacing=3 cellpadding=0 ">
* <tr style="background-color: rgb(204, 204, 255);">
* <th align=left>class
* <th align=left>name
* <th align=left>sex
* <th align=left>age
* <tr>
* <td>三(一)
* <td>张三
* <td>男
* <td>7
* <tr style="background-color: rgb(238, 238, 255);">
* <td>三(二)
* <td>李四
* <td>女
* <td>8
* </table>
*/
最终效果如下: