css - 请教一个网页部分怎怎么写
本文介绍了css - 请教一个网页部分怎怎么写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
1 用下面的标签语言大概写出了想要的效果,可是字体的颜色和型号没法更改,字体需要改成微软雅黑。
2这个是我写的结果
3 这是是我写的标签 html
<div class="top_mid1 ">
<h3>服务理念</h3>
<p class="top"></p>
<p class="bottom">精心设计用心服务以质保证</p>
</div>
CSS
.top_mid1{
width:1160px;
margin:0 auto;
border:red 1px solid;
position:relative;
}
.top_mid1 h3{
text-align:center;
}
.top_mid1 .top {
text-align:center;}
.top_mid1 .top b{
display:inline-block;
height:50px;
border-left:5px #000000 solid;
}
.top_mid1 .bottom{
text-align:center;
color:#000000;
}
.top_mid1 .bottom b{
border:#000000 3px solid;
display:inline-block;
width:220px;
}
解决方案
什么叫字体的颜色和型号没法更改,直接这是font-size:'',color:'',不行吗?
html, body{font-family:Helvetica,"Microsoft YaHei",Arial,sans-serif;}//设置微软雅黑
这篇关于css - 请教一个网页部分怎怎么写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文