如何使内容固定 [英] How to make the content Fixed

查看:111
本文介绍了如何使内容固定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

男/女

实际上,当我在asp.net(在C#中)中设计页面时,我以特定的方式安排内容,但是当使在网页中浏览"时,内容重叠,其中一些变得更大,另一个变得更小,并且某些从原始位置移开.... etc.
我尝试使用表格来固定内容,还尝试使用表格大小的百分比td和tr
但没有用
有谁能帮助我,告诉我在设计和浏览模式下使内容相同的合适方法是什么?

hi men/women

actually when I design the page in asp.net (in c#) I arrange the contents in specific way , but when make "browse in web page" the contents overlapping and some of them get bigger and another get smaller and some move from original position ....etc.
I tried to use tables to make the content fixed , I also tried to use the percent in size of tables, td and tr
but with no useful
can any one help me and tell me what is the suitable way to make the content the same in the design and browsing mode

推荐答案

我建​​议您使用CSS文件(通过使用CSS文件来级联样式表),您不仅可以固定页面上内容的大小,还可以格式化文本&页面布局根据需要.

有关CSS plz的更多信息,请参见以下链接.
http://www.html.net/tutorials/css/lesson2.php [ ^ ]

http://www.webdesignfromscratch.com/html-css/introduction-to-css/ [^ ]

祝您好运...
I suggest u should use CSS file (Cascading Style Sheet) by using CSS file u can not only fix the size of contents on page but can format text & Layout of page as needed.

For more inforamation about CSS plz refer following Links..

http://www.html.net/tutorials/css/lesson2.php[^]

http://www.webdesignfromscratch.com/html-css/introduction-to-css/[^]

Best of Luck...


您在ASP.NET论坛中提出了此问题,请勿交叉张贴.
答案和这里的一样,表已过时了!
使用DIV标签和CSS.
You asked this in the ASP.NET Forum, do not cross post.

The answer is the same there as here, Tables are obsolete!
Use DIV tags and CSS.


这篇关于如何使内容固定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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