首页 试题广场 > 试题详情
编程题

【C021078】请用CSS定义p标签,要求实现以下效果: 字体颜色在IE6下为黑色(#000000);IE7下为红色(#ff0000);而其他浏览器下为绿色(#00ff00)。

回复可见正确答案
下一题 上一题
Ke星伙伴们的回答/ 26个回答 添加答案
  • 萧萧疏雨坠 1楼

    不会

    发表时间:2016-08-15 11:35:45 评论 1

  • 一路走来走去 2楼

    发表时间:2016-08-16 10:21:03 评论 1

  • 西镜丶东瓶 3楼

    <!DOCTYPE html>

    <html>

    <head>

    <meta charset="UTF-8">

    <title>Document</title>

    <link rel="stylesheet" href="2.css">

    </head>

    <body>

    <p>这里是测试文字</p>

    </body>

    </html>



    CSS部分


    p{

    /*其他浏览器*/

    color:#00ff00;

    /*IE6*/

    _color:#000;

    /*IE7*/

    *color:#ff0000 !important;

    }


    发表时间:2016-08-16 15:19:49 评论 1

  • 陌落 4楼

    不会
    发表时间:2016-08-17 08:54:29 评论 1

  • 慢性毒药 5楼

    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>无标题文档</title>
    <style>
       /*IE6*/
        p{color:#000;}
       /*IE7*/
      p{color:#F00;}
       /*其他浏览器*/
      p{color:#0F0;}
    </style>
    </head>
    <body>
    <p>测试!测试!测试!测试!!!</p>
    </body>
    </html>

    发表时间:2016-08-17 12:36:59 评论 1

  • 慢性毒药 6楼

    多余了。。。。

    发表时间:2016-08-17 12:38:05 评论 0

  • 落丹尘520 7楼

    p{

    /*其他浏览器*/

     color:#00ff00;

     /*IE6*/

    _color:#000;

    /*IE7*/

    *color:#ff0000 !important;

    }


    发表时间:2016-09-06 11:30:26 评论 0

  • 无聊的人Cast 8楼

    ````

    发表时间:2016-09-12 22:36:47 评论 0

  • 、挥洒青春 9楼

    1
    发表时间:2016-09-26 02:42:34 评论 0

  • 温柔小王子 10楼

    浏览器兼容性。。

    发表时间:2016-10-31 20:29:18 评论 0

  • 不是我发烧 11楼

    ,
    发表时间:2016-11-09 11:04:17 评论 0

  • 獨自七年約 12楼

    p{

    /*其他浏览器*/

     color:#00ff00;

     /*IE6*/

    _color:#000;

    /*IE7*/

    *color:#ff0000 !important;

    }


    发表时间:2016-11-17 14:25:39 评论 0

  • kuserbrox 13楼

    m
    发表时间:2016-12-06 20:16:59 评论 0

  • 苹果小妹 14楼

    答案
    发表时间:2016-12-16 23:58:38 评论 0

  • 泪干了 15楼

    看看
    发表时间:2016-12-27 23:08:28 评论 0

关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部