html语言中怎么调用css中的字体,一般不是把字体大小颜色边框等属性的值放在site.css中
----------------sitc.css-----------------------------------------h1,h2,h3,h4,h5,h6{fo...
----------------sitc.css-----------------------------------------
h1, h2, h3, h4, h5, h6 {
font-size: 1.5em;
color: #000;
}
h1 {
font-size: 2em;
padding-bottom: 0;
margin-bottom: 0;
}
h2 {
padding: 0 0 10px 0;
}
---------------------------------------------------------------------
<fieldset>
<p><h2>患者信息</h2></p>
<legend aria-atomic="True"></legend>
<div class="stl_03 stl_04">
<div class="stl_01" style="top:auto; left:9.5em;"><span class="stl_08 stl_06 stl_07">收费方式: </span></div>
<div class="stl_01" style="top: 11em; left:9.5em;"><span class="stl_08 stl_06 stl_07">家庭住址: </span></div>
<div class="stl_01" style="top: 12em; left:9.5em;"><span class="stl_08 stl_06 stl_07">联系人: </span></div>
<div class="stl_01" style="top: 13em; left:9.5em;"><span class="stl_08 stl_06 stl_07">复诊计划: </span></div>
<div class="stl_01" style="top: 15em; left:9.5em;"><span class="stl_08 stl_06 stl_07">血透日期: </span></div>
<div class="stl_01" style="top: 16em; left:9.5em;"><span class="stl_08 stl_06 stl_07">血透相关: </span></div>
<div class="stl_01" style="top: 17em; left:9.5em;"><span class="stl_08 stl_06 stl_07">患者血型: </span></div>
<div class="stl_01" style="top: 19em; left:9.5em;"><span class="stl_08 stl_06 stl_07">传染病: </span></div>
<div class="stl_01" style="top: 20em; left:9.5em;"><span class="stl_08 stl_06 stl_07">吸毒情况: </span></div>
</div>
</fieldset>
怎么调用呢?比如说调用h2这个属性。我的代码如下 展开
h1, h2, h3, h4, h5, h6 {
font-size: 1.5em;
color: #000;
}
h1 {
font-size: 2em;
padding-bottom: 0;
margin-bottom: 0;
}
h2 {
padding: 0 0 10px 0;
}
---------------------------------------------------------------------
<fieldset>
<p><h2>患者信息</h2></p>
<legend aria-atomic="True"></legend>
<div class="stl_03 stl_04">
<div class="stl_01" style="top:auto; left:9.5em;"><span class="stl_08 stl_06 stl_07">收费方式: </span></div>
<div class="stl_01" style="top: 11em; left:9.5em;"><span class="stl_08 stl_06 stl_07">家庭住址: </span></div>
<div class="stl_01" style="top: 12em; left:9.5em;"><span class="stl_08 stl_06 stl_07">联系人: </span></div>
<div class="stl_01" style="top: 13em; left:9.5em;"><span class="stl_08 stl_06 stl_07">复诊计划: </span></div>
<div class="stl_01" style="top: 15em; left:9.5em;"><span class="stl_08 stl_06 stl_07">血透日期: </span></div>
<div class="stl_01" style="top: 16em; left:9.5em;"><span class="stl_08 stl_06 stl_07">血透相关: </span></div>
<div class="stl_01" style="top: 17em; left:9.5em;"><span class="stl_08 stl_06 stl_07">患者血型: </span></div>
<div class="stl_01" style="top: 19em; left:9.5em;"><span class="stl_08 stl_06 stl_07">传染病: </span></div>
<div class="stl_01" style="top: 20em; left:9.5em;"><span class="stl_08 stl_06 stl_07">吸毒情况: </span></div>
</div>
</fieldset>
怎么调用呢?比如说调用h2这个属性。我的代码如下 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询