当前位置: 首页 > news >正文

做网站开通手机验证功能wordpress全站ajax方法

做网站开通手机验证功能,wordpress全站ajax方法,做网站总结与体会,新媒体运营和ui设计哪个好毫无疑问GO的生态就是一坨大便。老子英文水平小学啊。 实现简单文本格式 文本字体颜色、大小、突出显示等。 创建要给docx文件容器【我估算的】 doc : document.New() defer doc.Close() doc.SaveToFile(simple.docx) 把容器保存为文件 设置标题 创建自然段…毫无疑问GO的生态就是一坨大便。老子英文水平小学啊。 实现简单文本格式 文本字体颜色、大小、突出显示等。 创建要给docx文件容器【我估算的】 doc : document.New() defer doc.Close() doc.SaveToFile(simple.docx)  把容器保存为文件 设置标题 创建自然段Paragraph run设置文本内容 para : doc.AddParagraph() run : para.AddRun() para.SetStyle(Title) run.AddText(Simple Document Formatting) 效果图 设置缩进 para doc.AddParagraph() para.Properties().SetFirstLineIndent(0.5 * measurement.Inch)run para.AddRun() run.AddText(A run is a string of characters with the same formatting. ) 设置粗体、字体、大小、颜色 run para.AddRun() run.Properties().SetBold(true) run.Properties().SetFontFamily(Courier) run.Properties().SetSize(15) run.Properties().SetColor(color.Red) run.AddText(Multiple runs with different formatting can exist in the same paragraph. ) 换行 run.AddBreak() run para.AddRun() run.AddText(Adding breaks to a run will insert line breaks after the run. ) run.AddBreak() run.AddBreak() 输入文本 run createParaRun(doc, Runs support styling options:) 大写 run createParaRun(doc, small caps)run.Properties().SetSmallCaps(true) 画线和画两条 run createParaRun(doc, strike)run.Properties().SetStrikeThrough(true)run createParaRun(doc, double strike)run.Properties().SetDoubleStrikeThrough(true) 其他 run createParaRun(doc, outline)run.Properties().SetOutline(true)run createParaRun(doc, emboss)run.Properties().SetEmboss(true)run createParaRun(doc, shadow)run.Properties().SetShadow(true)run createParaRun(doc, imprint)run.Properties().SetImprint(true)run createParaRun(doc, highlighting)run.Properties().SetHighlight(wml.ST_HighlightColorYellow)run createParaRun(doc, underline)run.Properties().SetUnderline(wml.ST_UnderlineWavyDouble, color.Red)run createParaRun(doc, text effects)run.Properties().SetEffect(wml.ST_TextEffectAntsRed)//选择编号样式 nd : doc.Numbering.Definitions()[0]for i : 1; i 5; i {p : doc.AddParagraph() //设置编号等级p.SetNumberingLevel(i - 1) //设置编号样式p.SetNumberingDefinition(nd)run : p.AddRun()run.AddText(fmt.Sprintf(Level %d, i))}完整DEMO代码 // Copyright 2017 FoxyUtils ehf. All rights reserved. package main //导包 import ( fmtosgithub.com/unidoc/unioffice/colorgithub.com/unidoc/unioffice/common/licensegithub.com/unidoc/unioffice/documentgithub.com/unidoc/unioffice/measurementgithub.com/unidoc/unioffice/schema/soo/wml ) //资本家的密钥 func init() {// Make sure to load your metered License API key prior to using the library.// If you need a key, you can sign up and create a free one at https://cloud.unidoc.ioerr : license.SetMeteredKey(os.Getenv(UNIDOC_LICENSE_API_KEY))if err ! nil {panic(err)} }func main() {//创建docdoc : document.New() //关闭docdefer doc.Close()para : doc.AddParagraph()run : para.AddRun()para.SetStyle(Title)run.AddText(Simple Document Formatting)para doc.AddParagraph()para.SetStyle(Heading1)run para.AddRun()run.AddText(Some Heading Text)para doc.AddParagraph()para.SetStyle(Heading2)run para.AddRun()run.AddText(Some Heading Text)para doc.AddParagraph()para.SetStyle(Heading3)run para.AddRun()run.AddText(Some Heading Text)para doc.AddParagraph()para.Properties().SetFirstLineIndent(0.5 * measurement.Inch)run para.AddRun()run.AddText(A run is a string of characters with the same formatting. )run para.AddRun()run.Properties().SetBold(true)run.Properties().SetFontFamily(Courier)run.Properties().SetSize(15)run.Properties().SetColor(color.Red)run.AddText(Multiple runs with different formatting can exist in the same paragraph. )run para.AddRun()run.AddText(Adding breaks to a run will insert line breaks after the run. )run.AddBreak()run.AddBreak()run createParaRun(doc, Runs support styling options:)run createParaRun(doc, small caps)run.Properties().SetSmallCaps(true)run createParaRun(doc, strike)run.Properties().SetStrikeThrough(true)run createParaRun(doc, double strike)run.Properties().SetDoubleStrikeThrough(true)run createParaRun(doc, outline)run.Properties().SetOutline(true)run createParaRun(doc, emboss)run.Properties().SetEmboss(true)run createParaRun(doc, shadow)run.Properties().SetShadow(true)run createParaRun(doc, imprint)run.Properties().SetImprint(true)run createParaRun(doc, highlighting)run.Properties().SetHighlight(wml.ST_HighlightColorYellow)run createParaRun(doc, underline)run.Properties().SetUnderline(wml.ST_UnderlineWavyDouble, color.Red)run createParaRun(doc, text effects)run.Properties().SetEffect(wml.ST_TextEffectAntsRed)nd : doc.Numbering.Definitions()[0]for i : 1; i 5; i {p : doc.AddParagraph()p.SetNumberingLevel(i - 1)p.SetNumberingDefinition(nd)run : p.AddRun()run.AddText(fmt.Sprintf(Level %d, i))}doc.SaveToFile(simple.docx) }func createParaRun(doc *document.Document, s string) document.Run {para : doc.AddParagraph()run : para.AddRun()run.AddText(s)return run }
http://www.w-s-a.com/news/322629/

相关文章:

  • 任丘网站建设服务网站 建设原则
  • 长沙做一个网站要多少钱网站底部备案代码
  • wordpress构建自定义设置页面seo培训学什么
  • 延安有哪些做网站的公司如何建设网站?
  • 网站建设者属于广告经营者吗网站管理程序
  • 网站内容优化方法深圳市宝安区怎么样
  • 视频网站开发视频公司网站制作多少钱
  • 单页简洁手机网站模板购物软件
  • 素材网站官网低价网站建设费用预算
  • 苏州网站设计kgwl个人网站有什么外国广告做
  • 浙江省网站建设报价简单网站开发工具
  • 物流网站的建设wordpress电视直播插件下载
  • 简述网站开发流程青岛做网站建设价格低
  • 网站开发的业务需求分析杭州推广公司
  • 网站建设技术实现难点app开发需要哪些软件
  • 响水建设局网站做网站需要会哪些知识
  • 企业制作企业网站个人网站可以做百度竞价
  • 做网站找投资人wordpress 5 主题教程
  • 做国外网站汇款用途是什么wordpress图片主题晨曦
  • 网站设计跟网站开发区别为什么网站需要维护
  • m 的手机网站怎么做网络推广方式和方法
  • wordpress图片自动轮播插件seo门户网站建设
  • 制作商业网站传奇网页游戏排名
  • 网站免费推广方案长沙房地产网站设计
  • 济南网站建设cnwenhui中交路桥建设网站
  • 韶关网站开发网站建设任务分解
  • 网站建设核心点阿根廷网站后缀
  • 哪些网站可以做招商广告语学校官网页面设计
  • 十堰城市建设网站网站开发流程宜春
  • 内江网站建设郑州网站优化外包