- 选择字体:font-family
- 字体大小,font-size
- 字体样式:font-style
- 颜色:color
<!DOCTYPE html>
<html>
<head>
<meta>
<title>字体样式、文本样式、上色</title>
<style>
/* 设置字体:font-family */
body{font-family: Georgia, 'Times New Roman', Times, serif;}
/* 设置字号:font-size */
/* 加粗:font-weight */
p{font-size: 25px; font-weight: bold;}
/* 字体样式:斜体。。。 */
a1{font-style: italic;}
a2{font-style: inherit;}
a3{font-style: oblique;}
/* -------------------- */
/* 上色 */
box1{color: lawngreen;}
</style>
</head>
<body>
DMA(Direct Memory Access)即直接存储器访问。 DMA 传输方式无需 CPU 直接控制传输,也没有中断处理方式那样保留现场和恢复现场的过程,通过 DMA 控制器为 RAM 与 I/O 设备开辟一条直接传送数据的通路,这就节省了 CPU 的资源来做其他操作。使用 DMA 传输可以连续获取或发送一段信息而不占用中断或延时,在通信频繁或有大段信息要传输时非常有用。
<p><a1>nhao<box1>样式</box1></a1><br>
<a2>nihao样式</a2><br>
<a3>nihao样式</a3></p><br>
</body>
</html>
效果:
来自:html5+css3:https://www.imooc.com/learn/9