我有下面的css代码
.mybutton{
font-family : Segoe UI Semibold;
}Semi粗体适用于上述情况
我需要更改如下
.mybutton{
font-family: Segoe UI, Helvetica Neue, Arial Semibold
}但是半粗体不适用,如何在不使用font-weight属性的情况下实现这一点
发布于 2017-08-22 18:40:00
以下是字体的简写
body {
font: font-style font-variant font-weight font-size/line-height font-
family;
}发布于 2017-08-22 18:40:56
不能在font-family属性中设置font-weight,可以将其设置为font:属性,
font: font-style font-variant font-weight font-size/line-height font-family|caption|icon|menu|message-box|small-caption|status-bar|initial|inherit;在你的项目中,
.mybutton{ font: bold Segoe UI, Helvetica Neue, Arial Semibold; }
发布于 2017-08-22 19:19:55
对于font属性font-size和font-family是必填项,可以添加其他属性,如果没有提供font-size和font-family,则默认值为继承
如果你不想添加font -weight:粗体,那么使用粗体字体系列
.mybutton{
font: bold 15px Segoe UI, Helvetica Neue, Arial;
}https://stackoverflow.com/questions/45815378
复制相似问题