CSS样式对字体不起作用?_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:12:17
Original
1241 people have browsed it

.name{    font-size: 17px;    color:red;}/*body{	font-size: 12/150%px;    color: green;}*/
Copy after login



为毛线字体不是红色???


回复讨论(解决方案)

.name{
    font-size: 17px;
    color:red!important;
}

用id 试试

估计是样式有冲突了,换个class名称试一下。

不要用系统保留字name,你换一换类名

与保留无关,,,应该是冲突了。。。

估计是样式有冲突了,换个class名称试一下。

试过了,改成p_title也不行。用important可以

与保留无关,,,应该是冲突了。。。

好像也没有起冲突,因为我搜索过了,根本没有name这个类
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