text-shadow文本阴影
box-shadow盒子阴影
text-overflow显示溢出内容
word-wrap强制文本换行
word-break单词拆分换行

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>文本效果</title>
</head>
<style>
h1 {
text-shadow: 5px 5px 5px rebeccapurple;
word-wrap:break-word;
}

div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px 5px grey;
overflow:hidden;
text-overflow:ellipsis;
}
</style>
<body>
<div>
<h1>世界那么大世界那么大世界那么大世界那么大世界那么大世界那么大</h1>
This is some long text that will not fit in the box
</div>
</body>
</html>