css - 请教一个网页部分怎怎么写

 安南微 发布于 2022-11-01 13:22

1 用下面的标签语言大概写出了想要的效果,可是字体的颜色和型号没法更改,字体需要改成微软雅黑。

2这个是我写的结果

3 这是是我写的标签 html


服务理念



精心设计用心服务以质保证


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;
}
2 个回答
  • .top_mid1 .bottom b

    你这个又是哪里来的。还有就是你源码也没写font相关的css啊

    2022-11-02 08:09 回答
  • 什么叫字体的颜色和型号没法更改,直接这是font-size:'',color:'',不行吗?

    html, body{font-family:Helvetica,"Microsoft YaHei",Arial,sans-serif;}//设置微软雅黑

    2022-11-02 08:12 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有