在 html 上读取 excel 文件时换行
Line Breaks when reading excel file on html
我在为我的要点引入分隔线时遇到问题。
我正在使用托管在 heroku 上的 meteorjs 应用程序,并使用 readxlsx。
我正在阅读 excel 文件中的条目,但它是作为一个完整的文本块来阅读的,我尝试了很多方法来引入换行符,例如在文本中包含 <br>
,但无济于事。目前,要点是在 excel.
中添加的符号
非常感谢任何帮助。谢谢你。
可在 http://zera.herokuapp.com/drugdetail/Paracetamol
访问网站
我已经包含了 excel sheet
的屏幕截图
Screenshot of Excel
Screenshot of Website
如您所见,要点看起来很不对劲。
Screenshot of Web Developer Tools
添加 css 解决了问题:
white-space:前线;
边距顶部:-20px;
我在为我的要点引入分隔线时遇到问题。 我正在使用托管在 heroku 上的 meteorjs 应用程序,并使用 readxlsx。
我正在阅读 excel 文件中的条目,但它是作为一个完整的文本块来阅读的,我尝试了很多方法来引入换行符,例如在文本中包含 <br>
,但无济于事。目前,要点是在 excel.
非常感谢任何帮助。谢谢你。
可在 http://zera.herokuapp.com/drugdetail/Paracetamol
访问网站我已经包含了 excel sheet
的屏幕截图Screenshot of Excel
Screenshot of Website
如您所见,要点看起来很不对劲。
Screenshot of Web Developer Tools
添加 css 解决了问题:
white-space:前线; 边距顶部:-20px;