好吧,所以我真的很新。几个小时前,我将样式类“P”设置为css风格类别不变
...// <Style>
P {color:black, font-size: 16pt;}
...// </Style>
并且我认为它可能会破坏某些东西!我所有的其他代码行都在工作,但是这个!我认为它会使每个默认的新段落黑色16pt ......但它不会让我改变颜色。
.need1类未被正确调用,并显示为先前设置的黑色16pt,而不是中心的24位红色,粗体文本的.need1类。
此外,Jfiddler保持tellng我
</P>
的收盘不当,所以我把他们赶走,但我应该把它们放回去?我已经尝试了两种方法,但并未解决问题。
<STYLE>.
.red1 {color: #ff0000}
.orange1 {color: }
.blue1
.green1
.need1 {font-size:24pt; color:red; font-weight: bold; text-align:center}
.need2 {font-size:16pt; color:red;}
.want {font-size:16pt; color:orange}
.fun {font-size:14pt; color:green}
.cata {font-size:20pt; color:black; font-weight: bold; text-decoration:underline; text-align: left}
.specs1 {font-size:20pt; color:blue; font-weight:bold; text-align:center; text-decoration: underline}
.specs2 {font-size:16pt; color: blue; text-align:center}
.head {font-size:28pt; color:purple; text-align:center;
text-decoration:underline; font-weight: bold}
.ex {font-size: 18; color:black; text-align: right}
a:link {color:blue; background-color:transparent; text-decoration:none}
a:visited {color:purple; background-color:transparent; text-decoration:none}
a:hover {color:red; background-color:transparent; text-decoration:underline}
a:active {color:yellow; background-color:transparent; text-decoration:underline}
</STYLE>.
<P Class = "head"> TEXT
</P>
<P Class = "need1"> TEXT
<BR>TEXT <span Class = "red1">TEXT</span> TEXT
<BR>TEXT
<BR>
<BR>TEXT
<P Class = "cata">
TEXT
</P>
<P>
<BR>TEXT = <span class= "red1">RED</span>
<BR>TEXT = ORANGE
<BR>TEXT =
<P Class = "head">
TEXT[Jfiddle Screencapture][1]
</P>
为什么额外此代码后。风格标签之前和之后? –
不要在class =“”之间有空格,这可能对你有帮助 – MasterT
我不确定如何在网站的文本框中输入代码,而不会变成代码大声笑!我想出了CTRL + K我认为。立即尝试您的建议,马上回来! – Hroki702