在网页中显示数据 [英] Display data in a webpage

查看:104
本文介绍了在网页中显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用数据列表查看网页中的数据.但是数据列表本身会创建一个表,因此我无法按我的要求查看.我实际上在页面左侧显示图像,然后使用数据列表显示新闻的详细信息.我需要在图片的右侧开始新闻,但它要在图片下方开始.

请任何人帮助我.什么是莱特程序?

预先感谢

i am using datalist to view the data in webpage. but datalist create a table itself so i have problem to view the as my requirements. I actually display image in left of the page then using datalist to display details of the news. I need to start the News right of the image but it start below the image.

please any one help me. what is the wright procedure to do that.

Thanks in advance

推荐答案

最好的方法是赋予数据列表绝对位置,使其覆盖图像
The best way is to give the datalist an absolute position such that it comes over the image


使用css.将图片包裹在div中,然后进行浮动:在该div上保留.将数据列表包装在另一个div中并进行浮点运算:也将其保留在该div上.您需要确保两个div的宽度不超过其所在容器的宽度,否则数据列表仍将落在图像下方.
use css. wrap the image in a div and do a float: left on that div. Wrap the datalist in a different div and do a float: left on that div as well. You''ll need to make sure that the two divs together aren''t wider than than whatever container their in or the datalist will still drop down under the image.


这篇关于在网页中显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆