如何使列表看起来像表格,在添加信息时自动扩展?
我知道如何使它看起来像一个表格,并且我知道添加信息后它会如何增长,但问题是表格的边框是圆形的并且有一个标题区域。我正在考虑将其设为背景图像,但我不知道如何让它在保持圆角的同时增长。
图像链接: http://i51.tinypic.com/15yyhe0.jpg
任何想法都会非常有帮助
I know how to make it look like a table, and I know how it would grow when info is added, but the problem is the table's border is rounded and has a header area to it. I was thinking of making it a background image but I don't know how I could get it to grow while keeping the rounded corners..
Image link:
http://i51.tinypic.com/15yyhe0.jpg
Any ideas would be very helpful
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了让它变大,你必须将圆角设置为单独的背景。在 html 5 中,这要容易得多,但是对于当前的用法,您可以查看 此处< /a>
这是一个旧站点,但仍然有效。这也可以使用不使用任何图像的 JavaScript 来完成,根据您的最终目标,有很多选项。
您想增加宽度还是高度?添加列或行?您要使用
或
标签吗?
或者正在考虑使用在用户点击时展开的手风琴 JS 手风琴
To make it grow you have to set the rounded corners as separate backgrounds. In html 5 this is a lot easier, however for the current usage you can check out here
This is an old site, that still works. This can also be done with javascript that doesn't use any images, there are lots of options depending on your end goal.
Are you wanting to grow width or height? Adding columns or rows? Are you going to use
<table>
or<div>
tags?Or are thinking of using accordions that expand upon user click JS Accordions