写在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,086人评论了“写在CSS裸体节”

  1. Thanks a lot for providing individuals with an exceptionally splendid opportunity to read articles and blog posts from this web site. It’s always very cool plus full of a great time for me personally and my office peers to search the blog at least three times in a week to see the latest guidance you have. And definitely, we’re at all times pleased with the magnificent knowledge you give. Certain two points in this post are rather the very best I’ve ever had.

  2. I must show my thanks to the writer just for rescuing me from such a scenario. Just after looking out throughout the world-wide-web and finding thoughts that were not powerful, I assumed my entire life was well over. Living without the presence of answers to the difficulties you’ve fixed all through this guideline is a serious case, and the kind that might have in a negative way affected my career if I hadn’t noticed your website. Your own mastery and kindness in controlling all the stuff was vital. I don’t know what I would’ve done if I hadn’t encountered such a thing like this. It’s possible to at this point relish my future. Thanks for your time so much for the expert and result oriented help. I won’t be reluctant to propose your web site to anyone who desires recommendations about this subject.

  3. A lot of thanks for all your valuable effort on this blog. Betty really likes doing research and it’s really simple to grasp why. We all hear all about the dynamic manner you deliver practical secrets by means of this web site and as well encourage response from website visitors about this issue then our own child is truly starting to learn a lot of things. Enjoy the rest of the new year. Your conducting a really great job.

  4. Thank you a lot for giving everyone a very marvellous possiblity to discover important secrets from this website. It’s usually very fantastic and as well , stuffed with amusement for me and my office friends to search your site at minimum three times a week to read through the newest issues you will have. Not to mention, I’m just usually fulfilled with your perfect creative ideas you give. Some 4 points in this post are undoubtedly the most effective we’ve had.

  5. I and also my guys happened to be following the good tactics from the website and then at once I got a terrible suspicion I never thanked the web site owner for those strategies. Most of the people were as a consequence excited to read through all of them and already have in truth been taking advantage of them. Thanks for actually being considerably accommodating and also for having these kinds of amazing subject areas millions of individuals are really needing to understand about. My honest regret for not expressing appreciation to earlier.

  6. I wish to voice my gratitude for your kind-heartedness giving support to men who actually need guidance on this area of interest. Your personal commitment to passing the message along has been extremely valuable and have always permitted associates much like me to realize their endeavors. Your insightful hints and tips entails a whole lot to me and even further to my fellow workers. Best wishes; from all of us.

  7. A lot of thanks for each of your work on this web site. My mom delights in setting aside time for internet research and it’s easy to see why. My spouse and i learn all regarding the powerful means you provide both useful and interesting items through the web site and even invigorate response from some others about this matter then our favorite princess is without a doubt understanding a whole lot. Take advantage of the rest of the new year. You’re the one carrying out a brilliant job.

  8. I’m also writing to make you understand what a nice encounter my daughter had checking the blog. She mastered a good number of pieces, including what it is like to possess an ideal helping character to have others with ease completely grasp a number of problematic subject matter. You actually did more than people’s desires. Thanks for displaying the productive, healthy, educational as well as cool thoughts on your topic to Evelyn.

  9. I wish to show my appreciation to the writer just for rescuing me from such a crisis. As a result of searching through the world-wide-web and obtaining methods which were not powerful, I assumed my entire life was gone. Being alive devoid of the approaches to the problems you have solved all through the review is a serious case, and those that would have in a wrong way damaged my entire career if I had not discovered your site. That talents and kindness in playing with all things was excellent. I’m not sure what I would’ve done if I hadn’t come upon such a step like this. It’s possible to at this point look forward to my future. Thanks a lot so much for the specialized and result oriented guide. I will not hesitate to endorse your blog to any individual who should receive tips on this problem.

  10. I enjoy you because of your own efforts on this website. My daughter takes pleasure in setting aside time for investigations and it’s easy to see why. Almost all learn all regarding the lively tactic you convey rewarding ideas via this website and as well as invigorate participation from other individuals on that concern then our own simple princess has been being taught a great deal. Take advantage of the remaining portion of the new year. You have been performing a stunning job.

  11. I enjoy you because of every one of your labor on this web page. Ellie delights in getting into internet research and it is obvious why. I notice all regarding the powerful ways you produce useful secrets by means of your website and in addition attract contribution from other individuals on the concept plus our child is understanding a lot of things. Enjoy the rest of the year. You are doing a terrific job.

  12. I actually wanted to send a small word to be able to say thanks to you for those marvelous strategies you are writing on this site. My time consuming internet investigation has now been paid with reliable suggestions to go over with my close friends. I ‘d believe that we readers actually are definitely endowed to dwell in a useful site with so many brilliant professionals with interesting guidelines. I feel really grateful to have used your website page and look forward to tons of more awesome times reading here. Thanks a lot again for a lot of things.

  13. I and also my friends were found to be viewing the good guidelines found on the blog and then quickly I got an awful suspicion I never expressed respect to the web blog owner for those techniques. These people had been for that reason thrilled to see them and have now without a doubt been taking pleasure in these things. Thank you for indeed being so thoughtful and for figuring out variety of high-quality themes most people are really needing to know about. My very own sincere regret for not expressing appreciation to sooner.

  14. I simply wished to say thanks all over again. I am not sure the things I would’ve carried out in the absence of the type of creative concepts shown by you directly on my area. Entirely was an absolute traumatic condition for me, nevertheless being able to see a new well-written style you managed it forced me to jump for delight. I am just grateful for this service and then pray you know what an amazing job that you are putting in instructing the rest using a web site. Most likely you’ve never met any of us.

  15. I precisely had to appreciate you again. I am not sure the things that I would’ve created in the absence of these hints contributed by you on such a situation. This was an absolute intimidating issue in my view, but understanding your specialised approach you dealt with that forced me to weep with delight. I’m grateful for the assistance and even expect you know what an amazing job you have been putting in educating the others through the use of your blog. Probably you have never encountered any of us.

  16. The following time I learn a weblog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to learn, but I really thought youd have something interesting to say. All I hear is a bunch of whining about something that you possibly can fix if you werent too busy searching for attention.

发表评论

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