learning and doing it.

<!--[if IE 7]><html class="no-js ie ie7 lte7 lte9" lang="en-US"><![endif]-->

<!--[if IE 8]><html class="no-js ie ie8 lte8 lte9" lang="en-US"><![endif]-->

<!--[if IE 9]><html class="no-js ie ie9 lte9>" lang="en-US"><![endif]-->

<!--[if (gt IE 9) | (! IE)]><!--><html class="no-js" lang="en-US"><!--<![endif]--->

//兼容性设置。

<meta name="viewpoint" content="width=deveice-width">//根据设备的宽度调整页面的大小。

<link rel="shortcut icon" href="icon-path">//给网页标题添加图片.

HTML条件判断表达式。

<!--[if expression]><![endif]-->

添加像菜单栏一样效果的ul

<li class="dropdown"><a href="http://website.org/">Contribute</a></li>

    <ul>

        <li><a href="http://website.org/cla/">CLA</a></li>

        <li><a href="http://website.org/style-guide/">style-guide</a></li>

    </ul>


<form class="searchform" method="get"  action="action_url">

    <button type="submit"  class="icon-search" ><span class="visuallyhidden">search</span></button>

    <label>

            <span class="visuallyhidden">Search jQuery Blog</span>

            <input type="submit" name="s" value="" placeholder="Search">

  </label>

</form>

省略符号:  &hellip;  右箭头: &raquo;

空格符: &#8220;  &8221; &nbsp;



你可能感兴趣的:(learning and doing it.)