相关文章推荐
善良的番茄  ·  css text-shadow ...·  1 月前    · 
善良的番茄  ·  css ...·  1 月前    · 
HTML sucks

HTML sucks

I’ve read about this on a few sites but now I’m sure: HTML is stupid!!1

I can’t believe there’s no way to control the styling of my website without doing everything all over again!
<!-- 推荐 -->
<!DOCTYPE html>
<title>My first CSS-only redesign</title>
<link rel="stylesheet" href="default.css">
<h1>My first CSS-only redesign</h1>
<p>I’ve read about this on a few sites but today I’m actually
  doing it: separating concerns and avoiding anything in the HTML of
  my website that is presentational.
<p>It’s awesome!
<!-- 不推荐 -->
<script src="//www.google.com/js/gweb/analytics/autotrack.js"
  type="text/javascript"></script>
<!-- 推荐 -->
<script src="//www.google.com/js/gweb/analytics/autotrack.js"></script>
风格统一了,就有了一个共同思维的环境,参与者就可以专注的看你要说什么,而不是先想你是在说哪星球的语言。 虽然我们在这里提出统一样式规则,但就只是想让大家都知晓并借鉴而对自己的风格进行修正。 当然,保持自己独有的风格也是很重要的。balabala…… 修正版本 2.1 译者:chajn 新浪微博: @chajn 于 2012-04-28