首页 新闻 赞助 找找看

问一个asp.net初级的页面问题

0
[已关闭问题]

各位,我在asp.net一个页面添加了一个table  在拖动列宽后就会自动出现一些

 

<style type="text/css">
        .style1
        {
            width: 84%;
            height: 353px;
        }
        .style3
        {
            height: 190px;
        }
        .style5
        {
            width: 77px;
        }
        .style7
        {
            width: 35px;
        }
        .style8
        {
            width: 77px;
            height: 16px;
        }
        .style9
        {
            height: 16px;
        }
        .style13
        {
            width: 12px;
        }

 

代码
<style type="text/css">
.style1
{
width:
84%;
height: 353px;
}
.style3
{
height: 190px;
}
.style5
{
width: 77px;
}

 

而且我调整列宽的时候还会自己增加 这是什么情况呢?希望各位高手指点

 

 

scott_zhou的主页 scott_zhou | 菜鸟二级 | 园豆:205
提问于:2010-01-21 16:45
< >
分享
其他回答(4)
0

用的是vs2008 或者2005么。呵呵这个是拖动控件时自动生成的css样式属性。

你也可以手动修改这些属性,保存后你的table也会变化。

.sytle1 、.style2、.style3是默认的table类选择器

十四 | 园豆:46 (初学一级) | 2010-01-21 16:59
0

你在拖动列宽时,实际上是在修改table的样式,vs2008会自动在页面内生成样式表,如果你不想让vs2008生成,可以在当前页面的功能区找到Style Application 并设置为Manual,如果找不到,可以到View(视图)->ToolBars(工具栏)->Style Application(程序样式),我用的是英文版的,翻译的不一定正确,请理解。

chenkychen | 园豆:205 (菜鸟二级) | 2010-01-21 17:06
0

你直接改style 就可以了。

水墨坊 | 园豆:205 (菜鸟二级) | 2010-01-21 18:09
0

二楼正解。

天堂口 | 园豆:514 (小虾三级) | 2010-01-21 20:33
0

好好学学css

woodynet | 园豆:6 (初学一级) | 2010-01-22 12:51
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册