写在CSS裸体节

原来昨天是一个节日——”CSS”裸体节,据说是为了促进web标准(简单、无格式),脱了CSS,你的网站变成什么样?

你看看First Annual Naked Day。嘿嘿,知道了吧:),然后国内好像也有很多站跟着一起裸奔了,我也想凉快凉快来着,可是不行,俺们不符合web标准,blog的衣服和肉肉是连在一起的,脱不掉!

可这也是今天最好玩的一件事情了, 想想我也曾一个猛子扎到了web标准的大河里,向着web标准的对岸游了好一阵子,当时的计划是把blog模板修改成XHTML+DIV/CSS结构的,最好XHTML里的标签全按语义来,在内容里不带一个样式属性(如style)、样式标签(如<Strong>),table靠边站,背景图片尽量少用,所有的样式布局全都整到CSS里面去,而且要做到IE和firefox显示基本一致,嘿嘿,脱掉CSS的衣服,就是上面那个老兄的样子。

 为什么要这么折腾?第一,跨浏览器显示效果统一,第二,以后好维护,改版只需要改改CSS就好了,第三我那偏执的追求专业的心在作祟,东西不瞎才好,可是后来真的做起来,发现那真是太痛苦了。

一篇《学习web标准有感》将web标准目前的缺陷总结得很好,我就不再累述,可能他也是有过切肤之痛吧,摘录两句——

  • table布局得到的同一性比div+css大得多。
  • 设计网页时不建议写纯语义化的XHTML后再布局美化,这样极度限制思维;建议从布局入手写XHTML,然后用CSS美化;不要被标准限制了思维。

1,562人评论了“写在CSS裸体节”

  1. I precisely wanted to appreciate you once again. I am not sure what I would have carried out without these pointers shared by you relating to that situation. It became a real depressing crisis in my position, nevertheless viewing a new professional way you solved it took me to leap with delight. Extremely thankful for your information and even hope that you find out what a great job you are always doing training many people using a blog. I’m certain you have never got to know all of us.

  2. I must get across my gratitude for your kindness for persons who must have help with this one study. Your real dedication to passing the message up and down turned out to be especially powerful and has truly made individuals like me to attain their pursuits. Your personal interesting tips and hints means a great deal a person like me and even further to my fellow workers. Many thanks; from each one of us.

  3. Thanks a lot for giving everyone a very spectacular chance to discover important secrets from here. It can be so kind and packed with fun for me and my office peers to visit the blog at the very least 3 times per week to study the new tips you will have. And indeed, I am also actually contented with your good opinions you give. Certain 4 areas in this article are basically the most efficient we have all ever had.

  4. My husband and i have been very relieved Emmanuel managed to deal with his preliminary research while using the ideas he discovered from your web page. It’s not at all simplistic to simply happen to be offering key points that many people have been making money from. We do know we now have the writer to appreciate for this. All of the explanations you have made, the easy web site menu, the relationships you will make it possible to engender – it’s many astounding, and it’s really making our son and our family understand that situation is amusing, and that’s unbelievably essential. Thank you for everything!

  5. Very good blog! Do you have any tips and hints for aspiring writers? I’m hoping to start my own blog soon but I’m a little lost on everything. Would you suggest starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any ideas? Thanks!|

  6. Thanks so much for giving everyone an extraordinarily wonderful opportunity to check tips from this web site. It really is very beneficial and as well , stuffed with fun for me personally and my office co-workers to search your blog at least thrice in 7 days to learn the latest guides you will have. And lastly, we are always amazed for the exceptional information you give. Certain 2 tips in this posting are surely the very best I’ve ever had.

  7. I’m just writing to let you be aware of of the awesome encounter our child developed reading your web page. She discovered plenty of things, not to mention what it’s like to have an amazing coaching mindset to get many people clearly master a variety of complex matters. You truly exceeded our own desires. Thanks for churning out those informative, safe, edifying and even fun thoughts on your topic to Jane.

  8. My spouse and i were very joyous when Emmanuel could do his inquiry with the ideas he came across in your site. It is now and again perplexing just to always be offering guidelines which often many others may have been making money from. Therefore we understand we have got the blog owner to appreciate for this. The type of explanations you’ve made, the easy blog navigation, the relationships your site give support to instill – it is most sensational, and it’s really leading our son in addition to us reason why this theme is enjoyable, and that’s really essential. Many thanks for all the pieces!

  9. I simply had to appreciate you once more. I do not know the things I could possibly have carried out without the actual secrets revealed by you regarding my theme. This was the challenging case for me personally, however , viewing your specialised fashion you dealt with the issue forced me to jump for delight. I am grateful for your support and then wish you realize what a powerful job you are putting in teaching the rest all through your blog post. I know that you haven’t got to know any of us.

发表评论

邮箱地址不会被公开。 必填项已用*标注