通过最佳实践组织和清理大型网站
好吧,所以在我找到现在的工作之前,我一直觉得对 CSS 有很好的理解。他们让我做的第一件事就是清理他们整个基于网络的会计和库存系统。存在交叉兼容性问题。该系统极其庞大,有 150 多个页面。主要问题是开发者在开发系统时并没有真正使用最佳实践(CSS)。该系统是由一张包含 1800 多行代码的样式表设置的,实际上没有任何结构。另一个主要问题是该网站主要由表格组成,并且许多表格以及其他元素具有内联样式,特别是所有输入字段(大小)。老实说,我不确定解决这个问题的最佳方法。显然,我想从 HTML 中提取所有内联样式。但找到实现这一目标的最佳方法很困难。关于推进此事的最佳方式有什么建议吗?预先感谢您的帮助。
Ok, so I have always felt that had a good understanding of CSS until I got my current job. One of the first things they are having me work on is cleaning up their entire web-based accounting and inventory system. There are problems with cross compatibility. The system is extremely vast and has over 150 pages. The main problem is that the developer did not really use best practices when he developed the system (CSS). The system is setup with one stylesheet of with over 1800 lines of code, which really has no structure. The other major problem is that the website is mostly made with tables and a lot of the tables, as well as other elements have inline styles, specifically all of the input fields (sizes). To be honest, I am not sure the best way to approach this. Obviously, I want to pull out all of the inline styles out of the HTML. But finding the best way to go about doing this is hard. Any suggestions on the best way to move forward with this? Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最好的建议是通过将任务分解为可管理的模块来逐步完成,并且每天执行一个。例如:
这次你有机会做对,所以花很多时间来正确规划这一点。如果您在小提琴上发布一些内容,我可以提供帮助。小心。
My best advise is do it incrementally by breaking down the tasks into manageable modules, and do one a day. Something like:
You have the opportunity of making it right this time, so spend a lot of time in the proper planning of this. If you post some on fiddle I can help. Take care.