网页设计:Dreamweaver 与自定义 HTML

发布于 2024-08-16 11:23:00 字数 347 浏览 4 评论 0原文

我和我的兄弟一直在讨论这个问题,看起来我们都没有资格回答这个问题。

事实上,自从我开始学习 ASP.Net MVC 以来,我的印象是我应该使用 HTML/CSS 创建所有 .aspx 页面。他(我的兄弟)坚持认为 - 在现代 - 我们不应该在 HTML/CSS 上花费太多时间,因为有软件(例如 Dreamweaver)可以做到这一点。

虽然我做了更多的服务器端编码,但我认为解决这个问题对于进一步的定位很重要。

顺便问一下,如果我应该使用 Dreamweaver 设计的页面,我该如何将它们集成到我的 ASPNET-MVC 项目中?

感谢您的帮助

I've been having this discussion with my brother, and it looks like none of us is well qualified to answer the question.

n fact, since I've been learning ASP.Net MVC, I've the impression that I should create all my .aspx pages using HTML/CSS. He (my brother) sustains that - in the modern day - we should not spend to much time on HTML/CSS because there are software (like Dreamweaver) which do just that.

Although I do more of the server side coding, I think it's important to settle this matter for further orientation.

By the way, in case I should use Dreamweaver-designed pages, how would I integrate them in my ASPNET-MVC project?

Thanks for helping

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

情徒 2024-08-23 11:23:00

这是支持/反对 html 生成的经典讨论,仅仅通过提出问题,您就有可能将帖子作为“主观”关闭 =)

基本上,您必须决定您是否希望在创建代码的工作中保持简单性 em>,或者在代码本身中。

  • Dreamweaver(以及我遇到过的所有其他所见即所得 HTML 工具)将生成大量额外代码,这将使合并服务器端代码变得更加困难 - 仅仅是因为需要导航的混乱程度更大 。
  • 另一方面,创建 HTML 页面可能比手动编写代码快很多

如果您擅长使用所见即所得编辑器,无论是 Dreamweaver、Visual Studio 中的内置编辑器还是其他编辑器,您可能会从其中绘制粗略的草图中受益。不过,我建议您始终在代码中手动进行整理。这是您保持对输出的完全控制的唯一方法。

This is the classic discussion pro/against html generation, and just by asking the question you risk the post being closed as "subjective" =)

Basically, you have to decide whether you want simplicity in your work creating the code, or in the code itself.

  • Dreamweaver (and every other WYSIWYG HTML tool I've ever encountered) will generate a lot of extra code, which will make it harder to incorporate your server side code - simply because there's a larger mess to navigate in.
  • On the other hand, creating the HTML page might be a lot faster than writing the code by hand.

If you're good at using a WYSIWYG editor, be it Dreamweaver, the built-in one in Visual Studio or some other one, you might benefit from drawing up the rough scetches in that. I would recommend, though, that you always do the finishing by hand, in the code. That's the only way you can retain complete control over your output.

高冷爸爸 2024-08-23 11:23:00

从纯粹主义者的角度来看,除非您已经可以手动编写 HTML、CSS 和 JavaScript 代码,否则您不应该使用可以为您完成这些工作的工具。

工具对于提高你的工作效率非常有价值,但知道它们何时出错的经验更有价值。

From a purist perspective, unless you can already code your HTML, CSS and JavaScript by hand you shouldn't use a tool that does it for you.

Tools are very valuable at making your more productive, but the experience to know when they screw up is more valuable.

陈甜 2024-08-23 11:23:00

嗯,答案很简单。 Dreamweaver 只是一个美化的代码编辑器,具有自动完成功能、连接到 FTP 并在程序中上传您的作品的能力,以及独特的“设计视图”,可让您用鼠标移动编码对象,并为您提供内容的可视化表示您的工作看起来就像没有打开完整的浏览器。您是否使用记事本、Dreamweaver 或其他代码编辑器来创建代码都没有关系。事实上,我知道很多 ASP/.NET 程序员只是使用 MS Visual Studio 来完成他们的工作,因为 ASP/.NET 只是一种 MS 语言,而 Visual Studio 支持许多 ASP/.NET 程序员认为有用的工具。也就是说,您仍然可以使用任何其他代码编辑器编写 ASP/.NET 代码,只是您这样做可能会更加手动或耗时。您说“Dreamweaver 设计的页面”,而这一切只是使用 Dreamweaver 作为代码编辑器编写的文档,没有任何 Dreamweaver 细节会添加到该文档中。不幸的是,你的麻烦似乎并不理解程序或编程语言之间的差异或复杂性,反之亦然,它们是相似的。无论您是针对 HTML 还是 ASP/.NET 进行编程、使用 CSS 制作样式表、您的项目是服务器端还是客户端,使用标准标记并确保您的所有工作都与跨浏览器兼容始终是良好的做法。对与 IE 的兼容有很大影响。请记住,大多数代码都是手工完成的,其原因是因为程序员需要对他/她所做的一切进行事实检查,以最大限度地减少错误并创建高效的文档或程序。再次不幸的是,在实现最终编码目标方面,程序无法像人脑那样出色地完成工作。哦,顺便说一句,除非您要创建一个简单的文档并仅使用 CSS 来设计该文档,否则将设计留给设计人员。

Well, the answer is pretty simple. Dreamweaver is just a glorified code editor with autocomplete, the ability to connect to FTP and upload your work within the program, and a unique "design view" which lets you move coded objects around with your mouse and also give you a visual representation of what your work looks like without opening a full browser. It doesn't matter if you use Notepad, Dreamweaver, or another code editor to create your code. For a fact, I know a lot of ASP/.NET programmers just use MS Visual Studio to do their work because ASP/.NET is simply a MS language and Visual Studio supports a lot of tools which ASP/.NET programmers find useful. That said, you can still code ASP/.NET with any other code editor, it just may be more manual or time consuming on your part to do so. You said "Dreamweaver-designed pages" and all this is is just a document coded with Dreamweaver being used as the code editor, there are no Dreamweaver specifics that would add to the document. Unfortunately, your bother does not seem to understand the differences or the complexities between programs or programming languages and vice-a-versa where they are similar. Whether you are programming for HTML or ASP/.NET, making a stylesheet with CSS, your project being server-side or client-side, it is always good practice to use standard markup and make sure all your work is cross-browser compatible with a strong influence on being compatible with IE. Just remember that most of all code is done by hand, and the reason for this is because the programmer needs to fact check everything he/she is doing to minimize errors and create an efficient document or program. Unfortunately again, a program just cannot do as good a job of realizing the ultimate coding goal than that of a human brain can achieve. Oh, and by the way, unless you are creating a simple document and utlizing only CSS to design that document, leave the design up to the designer.

空气里的味道 2024-08-23 11:23:00

托马斯的评论很有价值。遗憾的是,你兄弟认为在“现代”你不应该弄乱代码的想法是不正确的。我们用于 html/css/web 开发的工具只能帮助您到目前为止。您可能能够单独或组合使用它们中的任何一个来构建一个“功能正常”的网站,但为了获得您在优秀应用程序中看到的真正的配合和完成,您也将在代码中工作。

此外,您选择了 ASP.NET MVC,对于 ASP 来说,它是一个非常薄的抽象层,并且工作方式非常接近于金属。它被设计为一个框架,供那些需要手工编写大量代码并且需要很少的魔法的人使用。此时的工具反映了这一点。该工具将为您构建一个基本的应用程序,但其余的工作可以在 VS2008 之外完成,也可以在 VS2008 编辑器中手动完成。

如果你像你所说的那样“开始学习”MVC,你的工作流程可能会从使用 VS 生成的框架代码开始,所以现在在 VS2008 中工作。至少可以说,VS2008 中的 html 编辑器是有限的,因此,如果您希望为您的视图进行更多向导驱动的 css 或 html 开发,您可以在 Dreamweaver、Expression 或其他编辑器中处理视图页面或 html 片段。然后,您将将该代码放回到 VS2008 中,并在那里做更多工作以将视图链接到控制器。

随着您对 css 和 html 有了更多的了解,您将越来越少地使用 Dreamweaver 中的向导和对话框驱动的内容,因为打开代码并进行更改会更快。

Tomas is on the money with his comments. Your brother's notion that in the "modern day" you shouldn't have to mess with the code is sadly not true. The tools that we have for html/css/web development will get you only so far. You will likely be able to build a "functioning" site with any of them individually or in combination but to get the real fit and finish that you see in a excellent application you will be working in code as well.

Moreover, you have chosen ASP.NET MVC which for ASP is a pretty thin abstraction layer and works pretty close to the metal. It was designed as a framework for folks who do a lot of the code by hand and with minimal wizardry. The tooling at this point reflects that. The tooling will stub you out a basic application, but the rest you do either outside VS2008 or by hand in the VS2008 editor.

If you are "starting to learn" MVC as you said, your workflow will probably start off by using the framework code generated by VS, so now are working in VS2008. The html editor in VS2008 is limited to say the least, so if you want some more wizard driven development of css or html for your views you may work on a view page or a html snippet in Dreamweaver, Expression or your some other editor. You'll then be dropping that code back in VS2008 and doing more work there to link up the view to the controller.

As you get more of an understanding of the css and html you will use the wizards and dialog driven stuff in Dreamweaver less and less simply because it is faster to just open up the code and make the change.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文