html P标签设置字体颜色的两种做法

2019-01-04  本文已影响111人  CoderZb

做法1:

<div class="contain">
   <p style="font-size:30px;color:orange">p标签设置字体颜色</p>
</div>

做法2:

<style>
.contain p{
    font-size:30px;
    color:orange;
}
</style>
<div class="contain">
    <p>p标签设置字体颜色1</p>
</div>
上一篇 下一篇

猜你喜欢

热点阅读