网页上的自动换行
我目前正在使用 .NET 2008 创建一个网页。我们正在从数据库获取信息,但在显示它时我无法将其包裹在下面。 例如:
2231 Question 1
2232 Mechanical Engineering Technologists and Technicians
2233 Industrial Engineering and Manufacturing Technologists
and Technicians
2234 Question 4
在2233中我怎样才能让它在下面看起来像这样:
2231 Question 1
2232 Mechanical Engineering Technologists and Technicians
2233 Industrial Engineering and Manufacturing Technologists
and Technicians
2234 Question 4
谢谢!
I am currently working on creating a web page using .NET 2008. We are getting information from a database and when displaying it I cannot get it to wrap underneath. For example:
2231 Question 1
2232 Mechanical Engineering Technologists and Technicians
2233 Industrial Engineering and Manufacturing Technologists
and Technicians
2234 Question 4
In 2233 how can I get it to go underneath to look like this:
2231 Question 1
2232 Mechanical Engineering Technologists and Technicians
2233 Industrial Engineering and Manufacturing Technologists
and Technicians
2234 Question 4
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将按以下方式构建您的 HTML:
您的 CSS 将如下所示:
显然,根据您的喜好调整数字:)
I would structure your HTML in the following manner:
And your CSS would be the following:
Obviously tweak the number to your liking :)
嗯,有一个更好的方法,但是这可以通过表格廉价且快速地完成。
好吧,我尝试在 Markdown 中实现它,但它不喜欢它。
-亚当
Well, there's a better way, but this can be done cheaply and quickly with tables.
Well, I tried to implement it in markdown, but it didn't like it.
-Adam