CCS5怎么调字体大小??????求大神啊

CCS5怎么调字体大小??????求大神啊,第1张

1、首先打开CCS,选择菜单栏中的preference,在打开的页面中按图片中所示的选择。“General” ->“Appearance” ->“Colors and Fonts” 。

2、然后在右边栏中,打开 “basic” 。

3、接着在打开的页面中,找到并双击 “Text Font”。

4、然后在打开的页面中,找到并选择字体:”YaHei Consolas Hybrid” 。

5、选择完成后,点击确定就可以了。

字体控制:

font-style:字体风格 italic 斜体

font-weight: 字体粗细 bold、normal

font-size: 字体尺寸 用像素表示,默认16px

font-family: simHeight、simSong

color:颜色

line-height:行高

可以合起来写:

font:style weight size/line-height font-family italic bold 18px "微软雅黑",scan-serif

以上字体设置的大致属性,至于具体的位置有三种

一、通过link来外部引入,如:<link rel="stylesheet" href="images/htm.css" type="text/css">

二、写在style标签内,如:

<style type="text/css">

font:style weight size/line-height font-family italic bold 18px "微软雅黑",scan-serif

</style>

三、直接写在正文标签里,如:

<p style="font:style weight size/line-height font-family italic bold 18px "微软雅黑",scan-serif">示例</p>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/11005756.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-12
下一篇 2023-05-12

发表评论

登录后才能评论

评论列表(0条)

保存