css怎样设置文本最小字体

html-css018

css怎样设置文本最小字体,第1张

选择指定的文字后,然后再给这段文字添加属性值:

style样式:

.fot{ font-size:9px}

div框架:

<div class="fot">

文字大小,文字大小,文字大小

</div>

需要准备的材料分别有:电脑、浏览器、html编辑器。

1、首先,打开html编辑器,新建html文件,例如:index.html。

2、在index.html中的<body>标签中,输入html代码:<span style="font-size: 8px">hello world!</span>。

3、浏览器运行index.html页面,此时设置了8px字体大小的文字。