用于网页布局和设计的css或母版页之间哪个更好?

时间:2021-11-08 15:54:36

of course please tell me that css is better and faster or master pages for web layout and graphic design .

当然请告诉我css是更好,更快或网页布局和图形设计的母版页。

3 个解决方案

#1


They are complementary, you should learn both and use them together.

它们是互补的,你应该学习它们并一起使用它们。

#2


You master page will provide an HTML template. This HTML template should link in a CSS file that will style your content. So you should use both, at the same time.

您的母版页将提供HTML模板。此HTML模板应链接到CSS文件中,该文件将为您的内容设置样式。所以你应该同时使用两者。

#3


Ah. i think i am now understanding your question: "please give me some logical reason why to use CSS for layout over shoving hard coded layout (tables?) into the master page?"

啊。我想我现在正在理解你的问题:“请给我一些合乎逻辑的理由,为什么使用CSS进行布局而不是将硬编码布局(表格?)推入母版页?”

I hear that question from many people who jump into web programming via a windows background.

我从许多通过Windows背景进入网络编程的人那里听到了这个问题。

Layout in the web world has far greater consequences than windows programming due to a few major points:

由于以下几个要点,网络世界中的布局比Windows编程具有更大的后果:

  1. Different browsers render html differently.
  2. 不同的浏览器以不同方式呈现HTML

  3. For the Blind and Disabled, certain brute force techniques hinder accessibility, and/or tab based access.(the "Why the heck did that control get focus?!")
  4. 对于盲人和残疾人来说,某些强力技术会阻碍可访问性和/或基于标签的访问。(“为什么这个控制能够得到关注?!”)

  5. Layout adjustments. Wow. this one is huge. when you have a form that takes a lot of user input, it is WAY easier to adjust if a label appears to the left or top of a control with a few simple css classes.
  6. 布局调整。哇。这一个是巨大的。当你有一个需要大量用户输入的表单时,如果标签出现在带有几个简单css类的控件的左侧或顶部,则更容易调整。

Plus, one thing many people forget about predefined CSS libraries is that they are Class Libraries for UI. just understanding standard methods of wrapping controls can greatly improve your layout issues, and since most predefined CSS libraries use the same class name, you can swap them out to get an entirely different look.

此外,许多人忘记预定义CSS库的一件事是它们是用于UI的类库。只了解包装控件的标准方法可以大大改善您的布局问题,并且由于大多数预定义的CSS库使用相同的类名,您可以将它们交换出来以获得完全不同的外观。

#1


They are complementary, you should learn both and use them together.

它们是互补的,你应该学习它们并一起使用它们。

#2


You master page will provide an HTML template. This HTML template should link in a CSS file that will style your content. So you should use both, at the same time.

您的母版页将提供HTML模板。此HTML模板应链接到CSS文件中,该文件将为您的内容设置样式。所以你应该同时使用两者。

#3


Ah. i think i am now understanding your question: "please give me some logical reason why to use CSS for layout over shoving hard coded layout (tables?) into the master page?"

啊。我想我现在正在理解你的问题:“请给我一些合乎逻辑的理由,为什么使用CSS进行布局而不是将硬编码布局(表格?)推入母版页?”

I hear that question from many people who jump into web programming via a windows background.

我从许多通过Windows背景进入网络编程的人那里听到了这个问题。

Layout in the web world has far greater consequences than windows programming due to a few major points:

由于以下几个要点,网络世界中的布局比Windows编程具有更大的后果:

  1. Different browsers render html differently.
  2. 不同的浏览器以不同方式呈现HTML

  3. For the Blind and Disabled, certain brute force techniques hinder accessibility, and/or tab based access.(the "Why the heck did that control get focus?!")
  4. 对于盲人和残疾人来说,某些强力技术会阻碍可访问性和/或基于标签的访问。(“为什么这个控制能够得到关注?!”)

  5. Layout adjustments. Wow. this one is huge. when you have a form that takes a lot of user input, it is WAY easier to adjust if a label appears to the left or top of a control with a few simple css classes.
  6. 布局调整。哇。这一个是巨大的。当你有一个需要大量用户输入的表单时,如果标签出现在带有几个简单css类的控件的左侧或顶部,则更容易调整。

Plus, one thing many people forget about predefined CSS libraries is that they are Class Libraries for UI. just understanding standard methods of wrapping controls can greatly improve your layout issues, and since most predefined CSS libraries use the same class name, you can swap them out to get an entirely different look.

此外,许多人忘记预定义CSS库的一件事是它们是用于UI的类库。只了解包装控件的标准方法可以大大改善您的布局问题,并且由于大多数预定义的CSS库使用相同的类名,您可以将它们交换出来以获得完全不同的外观。