gpt4 book ai didi

css - 设置默认 HTML 5 页面样式的最佳方式?

转载 作者:太空宇宙 更新时间:2023-11-03 22:06:12 24 4
gpt4 key购买 nike

设置 HTML 5 网站样式(也可在 IE6 中运行)的最佳方式是什么?

<header>
[ Header ]
</header>

<section>

<article>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent varius ultricies nibh faucibus tempor. Aliquam erat volutpat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent hendrerit nunc vitae nisl accumsan dictum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer convallis lobortis turpis posuere semper. Proin ligula mi, hendrerit sit amet feugiat eu, dapibus sed ante. Donec lacinia aliquam felis at gravida. Praesent varius lectus enim. Nulla vehicula, odio id feugiat ornare, nibh urna elementum arcu, ut suscipit odio velit vel augue. Maecenas enim dolor, tincidunt a luctus ornare, viverra ut lorem. Suspendisse imperdiet est id mi pulvinar quis interdum felis vehicula.
</article>

<aside>
[ Aside ]
</aside>

</section>

<footer>
[ Footer ]
</footer>

CSS

header {
display:block;
clear:both;
background-color:red;
height:43px;
}

section article {
display:block;
float:left;
width:800px;
background-color:green;
}

section aside {
display:block;
width:180px;
background-color:lime;
}

footer {
display:block;
clear:both;
background-color:blue;
height:43px;
}

我真正的问题是,我现在必须在标签后添加吗?

最佳答案

您需要知道的一切都在http://html5boilerplate.com/

关于css - 设置默认 HTML 5 页面样式的最佳方式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5935730/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com