当前位置:网站首页>Double insurance for line breaking
Double insurance for line breaking
2022-07-27 19:06:00 【Microservice preacher】
stay ASP.NET in , Extract the data from the database and display it on the page , It's usually used < asp:Lable />, Or use it directly <% # %> To show , Chinese characters generally do not have the problem of line breaking , english , Or continuous punctuation , There will be no automatic line feed , Broke the web page , Here you are 2 A solution :
(1) stay <td /> with <% # %> To display data :
<td style="word-break:break-all;word-wrap: break-word"><% # %></td>
(2) Before submitting data to the database , Replace the newline symbol with <br>:
chr=chr.Replace("/n","<br>");
(3)<td style="word-break:break-all;word-wrap: break-word" width="600" align="left" bgcolor="#FFFFFF">
<p><span class="css"> Content :<br>
--------<%=rs("content")%></span></p>
<div align="center"> </div>
<div align="right"><span class="css"> Time of publication :<%=rs("time")%> </span></div></td>
</tr>
边栏推荐
- log4j. Properties log details
- 一篇让你掌握线程和线程池,还解决了线程安全问题,确定不看看?
- Day 3 of leetcode question brushing
- MicaZ+Tinyos学习笔记(1)
- Low noise anion fan touch IC
- 「测试新手百科」5 分钟快速上手Pytest 自动化测试框架
- 电磁场学习笔记-矢量分析和场论基础
- Here are all the MySQL interview questions you can't expect (the latest version of 2022)
- Led with fan eye protection learning table lamp touch chip-dlt8s12a
- C#与Mysql数据库交互-Mysql配置及增删查改操作
猜你喜欢

Kinect2 for Unity3D——AvatarDemo学习

Electric heating neck pillow chip-dltap703sc

自控原理学习笔记-系统稳定性分析(2)-环路分析及Nyquist-Bode判据

Led with fan eye protection learning table lamp touch chip-dlt8s12a

I'm afraid I won't use the JMeter interface testing tool if I accept this practical case

Unity显示Kinect捕获的镜头

MySQL 03 高级查询(一)

express

Unity learning notes (realize the conveyor belt)

Introduction to assembly language (1)
随机推荐
C # interaction with MySQL database - MySQL configuration and addition, deletion, query and modification operations
The great idea of NS2
Redis annotation
WSN journal indexed by SCI
ES6-新增方法
【微信小程序】项目实战—抽签应用
Some advice for NS2 beginner.
PHP string operation
npm、cnpm 淘宝镜像
MongoDB
「测试新手百科」5 分钟快速上手Pytest 自动化测试框架
大冤种们,新进测试行业,如何正确选择意向企业?
C static method and non static method
Performance analysis of continuous time systems (2) - second order system performance improvement methods PID, PR
Kinect for Unity3d----KinectManager
USB rechargeable hand warmer chip dltap602sc Jericho
贪心法,拟阵和亚模函数(refer)
How to break the team with automated testing
`this.$ Emit ` the child component passes multiple parameters to the parent component
Unity学习笔记(实现传送带)