css 实现每个文字都有边框?

html-css014

css 实现每个文字都有边框?,第1张

看你是要整个页面 ,还是针对性的样式:

页面级:*{font-size: 14px

border: 1px dashed #FF0000}

针对性:.epage{

font-size: 14px

border: 1px dashed #FF0000

}

<style type="text/css">

.epage{

font-size: 14px

border: 1px dashed #FF0000

}

</style>

<span class="epage">是</span>

<span class="epage">是</span>

<span class="epage">是</span>

<span class="epage">是</span>

<span class="epage">是</span>

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>文字描边</title>

<style>

.text{

/* -webkit-box-reflect: below*/

-webkit-text-stroke:1px #f00

font-size:50px

font-weight: bold

font-family: "微软雅黑"

width: 900px

height: 200px

line-height: 200px

margin:50px auto

text-align: center

}

</style>

</head>

<body>

<div class="text">用我三生烟火,换你一世迷离</div>

</body>

</html>

希望可以帮到你  望采纳