代码好与坏的重要性

  • 2019-02-23 13:27:41
  • 1,620 次阅读
  • 稿源:天马行空

代码写的整齐,干净利索,加之网页布局美观,网页加载的速度快,总给人心情一亮的感觉。虽然说,网页中还有一些代码不符合html5的规范,但通过今后的不断改进,相信会有很多进步。

作为从事互联网多年的草根站长,越来越重视前端代码的质量了,平常浏览网页首先展现在眼前的是网页内容和布局,同一个网页,可能用css有多种写法达到同样的布局效果。可能有的人写的很零散,产生冗余的css样式,也有人写的非常的美观,用的代码很少,还有人用面向对象的方法写css样式,代码用的更少了。虽然现在的网速非常的快,那一点多余的css样式几乎不会影响网页的打开速度,但从以后的维护方面来看,会受影响的。

写代码要培养规范的写法,否则日积月累会养成坏毛病,并且还能看出一个人的代码水平。当然,一开始达不到要求,一方面多看看培训机构的视频,另一方面多看看一些大型的网站,看看人家网页布局和css是怎样写的,相信会有所帮助的。
我的第一个网站快照:

my_first_website

TAG:
喜欢 1

文章评论 (2)

  1. Jim说道:

    Woah! I’m really loving the template/theme of this
    site. It’s simple, yet effective. A lot of
    times it’s hard to get that “perfect balance” between superb usability and visual appearance.
    I must say you have done a excellent job with this.
    In addition, the blog loads super quick for me on Firefox.
    Excellent Blog! I love it when individuals get together and share
    thoughts. Great blog, stick with it! I’ve been browsing
    online more than 3 hours today, yet I never found any interesting article like yours.
    It’s pretty worth enough for me. Personally, if all site owners and bloggers made
    good content as you did, the internet will be much more useful than ever before.
    http://foxnews.org/

    [1楼]网友 Linux | Firefox 2.0.0.2   
    • star说道:

      Thank you for your compliment.

      [2楼]网友 Windows 7 | 搜狗浏览器 2.X      

表情

大眼 可爱 大笑 坏笑 害羞 发怒 折磨 快哭了 大哭 白眼 晕 流汗 困 腼腆 惊讶 憨笑 色 得意 骷髅 囧 睡觉 眨眼 亲亲 疑问 闭嘴 难过 淡定 抗议 鄙视 猪头