<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
h1{
font-size: 240px;
color: transparent;
-webkit-text-stroke: 4px red ;
}
</style>
</head>
<body>
<!-- 利用text-stroke属性创建镂空字体 -->
<!-- 只有webkit内核浏览器支持此属性 -->
<h1>yyy</h1>
</body>
</html>
网友评论