- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>Js_Jquery</title>
- <style type="text/css">
- /*.redDiv {
- color: red;
- }*/
- </style>
- </head>
- <body>
- <div id="msgDiv" class="redDiv" style="font-size:42px" <span style="line-height: 1.5;">style="font-color:blue"</span><span style="line-height: 1.5;"> </span><span style="line-height: 1.5;">></span>
复制代码 如何在div中设置字体颜色,不使用CSS,我试过用style="font-color:blue",style="color:blue",都不行
|