css怎么设置fontfamily


当前第2页 返回上一页

53310511ad25881f6719d15b7ec8471.png代码示例:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

<html>

<head>

<style type="text/css">

p.serif{font-family:"Times New Roman",Georgia,Serif}

p.sansserif{font-family:Arial,Verdana,Sans-serif}

</style>

</head>

 

<body>

<h1>CSS font-family</h1>

<p class="serif">This is a paragraph, shown in the Times New Roman font.</p>

<p class="sansserif">This is a paragraph, shown in the Arial font.</p>

 

</body>

</html>

效果:

347b7a88a7204e15383b78d46113af7.png

【推荐学习:css视频教程】

以上就是css怎么设置fontfamily的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css中颜色有几种表达方式

css如何添加阴影边框(代码实例)

css图片有什么属性

css怎么实现平方

css浮动是什么

css a怎么去掉下划线

css标准模型包含外边距吗

css margin-right属性怎么用

css怎么设置溢出隐藏

css margin-bottom属性怎么用

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...