Home >Web Front-end >HTML Tutorial >基础的CSS问题_html/css_WEB-ITnose

基础的CSS问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:47:571015browse

大家帮我看看,下面这段CSS有什么问题吗?body的样式一直没效果

/*第一行没有作用,这是为什么呢?*/body{background: #fff; font-size: 13px; font-family: Microsoft Yahei; color: #000;}body,p,ul,li,ol,h1,h2,h3,h4,h5{margin: 0; padding: 0;}ul,li,ol{list-style-type: none;}a{text-decoration: none;}input{border: 1px solid #ccc; outline: none;}img{border: 0;}


回复讨论(解决方案)

font-family: "Microsoft Yahei";

font-family: "Microsoft Yahei";


大神,我找到问题所在了,原来是外联样式表头部的charset问题,哎,折腾好一会儿,谢谢啦!
charset: "utf-8";/*分号没加,栽在这儿了*/
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn