![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Html5+Css
suboxiang
天道酬勤
展开
-
针对全部浏览器对HTML5新元素添加样式
一.将如下代码添加到网站的主样式表文件 article,aside,figcaption,figure,footer,header,main,nav,section{ display:block; } 二.加载js文件 在head中写入代码 推荐将html5shiv.js文件下载下来,下载地址:https://github.com/aFarkas/html5shiv转载 2015-09-26 14:57:55 · 216 阅读 · 0 评论 -
css中哪些属性会被继承
文本 color(除a 元素外),direction,font,font-family,font-style(用于设置斜体),font-size,font-variant(用于设置小型大写字母),font-weight,letter-spacing,line-height,text-align,text-indent,text-transform(用于修改大小写),visibility,whit转载 2015-09-25 16:09:07 · 197 阅读 · 0 评论 -
main 标签
HTML5 has added the new structural element added to its specification last year. The purpose of this element is to indicate the important or primary portion of the document where main content is disp转载 2015-09-23 16:26:25 · 1353 阅读 · 1 评论