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

基础的CSS问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:47:57
Original
1031 people have browsed it

大家帮我看看,下面这段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;}
Copy after login


回复讨论(解决方案)

font-family: "Microsoft Yahei";

font-family: "Microsoft Yahei";


大神,我找到问题所在了,原来是外联样式表头部的charset问题,哎,折腾好一会儿,谢谢啦!
charset: "utf-8";/*分号没加,栽在这儿了*/
Copy after login

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template