更改表行大小不会更新Visual Studio中的CSS文件 [英] Changing table row size does not update css file in visual studio

查看:75
本文介绍了更改表行大小不会更新Visual Studio中的CSS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名学习Web设计的C#程序员.我当前使用的工具是Visual Studio2010.使用视觉设计器,我正在使用表格来布局页面.我正在使用一个单独的CSS文件来存储格式信息.现在,如果我使用可视化设计器更改表中任何行的大小,它将为该行分配一个新的CSS类,并将其嵌入到本地文件中.因此,我放弃了该行内容的所有格式设置,最终将所有这些额外的CSS类嵌入到我的页面中.

所以我有几个问题:是否有办法让视觉设计器每次更改行大小时都更新css文件,而不是创建一个新的css类?

大多数asp.net开发人员是否使用Visual Studio进行页面布局设计?如果不是,有什么更好的程序可以使用?我正在尝试了解使用了哪些常用工具.

I am a C# programmer learning web design. The tool that I am currently using is Visual Studio 2010. Using the visual designer I am using tables to lay out the page. I am using a separate css file to store formatting information. Now if I change the size of any row in my table using the visual designer, it assigns a new css class for the row and embeds it in the local file. Hence, I loose all formatting for the content in the row and I end up with all these extra css classes embedded in my page.

So I have a few questions: Is there a way to get the visual designer to update the css file instead of creating a new css class each time I re-size a row?

Do most asp.net developers use Visual Studio for page layout design? If not what is a better program to use? I am trying to get a handle on what are the common tools used.

推荐答案

几个简单的要点:

1)如果您正在学习网页设计,首先要解决的问题之一就是表格会破坏网页的可访问性.表是数据行和列的理想选择,但不适用于网页布局.改用DIV ...您可以在Google上搜索它,并很容易在使用DIV布局页面上找到模板.

2)不,视觉设计师不会(也可能不应)在您的外部样式表中更新样式.如果您在其他地方使用该样式怎么办?可能看起来有些倒退,但我认为实施效果很好.

3)我与之共事的每个人都使用VS来编辑页面,但是我不知道有多少人使用可视化编辑器.我最多只能拆分使用它进行预览.

通常,我在创建视图,应用样式,创建组件等.对于初始设计,通常是由Photoshop中的某人提供给我或在纸上绘制草图.我使用母版页创建外观一次,然后创建内容页.

这些天我所有的客户端ASP.NET开发都是使用MVC Framework.

谢谢.
A couple quick points:

1) If you''re learning web design, one of the first things to address would be that tables ruin web pages for accessibility. Tables are perfect for rows and columns of data, but not good for laying out web pages. Use DIVs instead...you can google this and very easily find templates on laying out pages with DIVs.

2) No, the visual designer doesn''t (and probably shouldn''t) update styles in your external style sheet. What if you were using that style somewhere else? It might seem a little backwards, but I think the implementation is good.

3) Everyone I have worked with uses VS for editing pages, but I don''t know too many that use the visual editor. I use it, at most, in split for previews.

Typically, I''m creating views, applying styles, creating components, etc. For initial design, it''s usually given to me by someone in Photoshop or sketched out on paper. I use master pages to create the look/feel once and then create my content pages.

All my client-side ASP.NET development these days is with the MVC Framework.

Cheers.


感谢您抽出宝贵的时间回答我的问题.我正在阅读有关根据您的建议使用CSS进行格式化的信息.除非将表格显示为表格,否则现在看起来很难使用表格作为布局工具.
Thanks for taking the time to answer my question. I am reading about formatting with CSS now based on your advice. Tables now seem like too much trouble to use as a layout tool unless it''s a tabular display.


这篇关于更改表行大小不会更新Visual Studio中的CSS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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