词条 | ASIDE |
释义 | 概况aside,是html5的最新元素,目前大部分主流的浏览器都兼容,IE6等需要加载js来达到显示效果 出处HTML5提供的<aside>元素标签用来表示当前页面或文章的附属信息部分,可以包含与当前页面或主要内容相关的引用、侧边栏、广告、nav元素组,以及其他类似的有别与主要内容的部分。 根据目前的规范,<aside>元素有两种使用方法: 使用方法一被包含在<article>中作为主要内容的附属信息部分,其中的内容可以是与当前文章有关的引用、词汇列表等。 使用方法二在<article>之外使用,作为页面或站点全局的附属信息部分;最典型的形式是侧边栏(sidebar),其中的内容可以是友情链接、附属导航或广告单元等。 使用实例下面的代码示例综合了以上两种使用方法: <body> <header> <h1>My Blog</h1> </header> <article> <h1>My Blog Post</h1> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <aside> <!-- Since this aside is contained within an article, a parser should understand that the content of this aside is directly related to the article itself. --> <h1>Glossary</h1> <dl> <dt>Lorem</dt> <dd>ipsum dolor sit amet</dd> </dl> </aside> </article> <aside> <!-- This aside is outside of the article. Its content is related to the page, but not as closely related to the above article --> <h2>Blogroll</h2> <ul> <li><a href="#" title="广州网站建设">广州网站建设</a></li> <li><a href="#" title="广州企业网站建设">广州企业网站建设</a></li> <li><a href="#" title="广州网站优化">广州网站优化</a></li> </ul> </aside> </body> |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。