字号为什么不能一并修改呢?

来源:7-2 为什么是css呢? - CSS样式的优势

三月既望

2016-12-22 10:54

<style type="text/css">

span{

   font-size=30px;

   color:blue; 

   font-wight=bold;

}

</style>

</head>

<body>

    <p>慕课网,<span>超酷的互联网</span>、IT技术免费学习平台,创新的网络一站式学习、实践体验;<span>服务及时贴心</span>,内容专业、<span>有趣易学</span>。专注服务互联网工程师快速成为技术高手!</p>


写回答 关注

6回答

  • 慕粉1640454903
    2016-12-22 11:10:52
    已采纳

    span里的等号改冒号,然后font-wight改font-weight

  • 面码安吉
    2016-12-22 11:21:51

    首先样式中的等号改成冒号,其次font-wight改为font-weight。

  • 慕先生3134699
    2016-12-22 11:19:45

    <style type="text/css">

    span{

        font-size:30px;

        color:blue;

        font-weight:bold;

            }

    </style>

    </head>

    <body>


  • qq_尛柒_0
    2016-12-22 11:17:20

    <style type="text/css">

    span{

        font-size:30px;

        color:blue;

        font-weight:bold;

            }

    </style>

    </head>

    <body>

  • weibo_无有万相空_0
    2016-12-22 11:16:08

    <style type="text/css">

    span{

    font-size:30px;

    color:blue;

    font-weight:bold;

    }

    </style>

    </head>

    <body>

  • 慕粉1556318457
    2016-12-22 11:03:00

    把等号改为冒号

初识HTML(5)+CSS(3)-升级版

HTML(5)+CSS(3)基础教程8小时带领大家步步深入学习标签用法和意义

1228544 学习 · 19062 问题

查看课程

相似问题