81,094
社区成员
发帖
与我相关
我的任务
分享
public static String createHTMLTemple(Map<String,String> info){
StringBuffer buffer = new StringBuffer("");
buffer.append("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'/></head><body>");
// 添加标题
buffer.append("<h1><div class='centerDiv'><p><img width='83' height='79' src='../AppData/Roaming/Macromedia/Dreamweaver 8/OfficeImageTemp/clip_image002_0000.jpg' alt='logo' /><span class='STYLE1'>气象灾害预警 </span></p><p class='STYLE2'>2013 年总 763 期</p><p class='STYLE2'><strong>霾预警 第 57 期</strong></p><div class='STYLE2'><table class='centerDiv' style='width:100%;'><tr><td align='left'>中国气象局中央气象台</td><td><p align='left'>预报:花丛 徐辉</p><p align='left'>签发:孙军</p></td><td><p align='left'>2013年12月8日18时</p></td></tr></table></div></div><hr color='#ff0000' size='1'/></h1>");
// 正文内容
String content = info.get(WordProductConstant.CONTENT);
buffer.append(content);
buffer.append("</body></html>");
return buffer.toString();
}