八哥电影网站,自找死路,杭州汇通快递电话
效果图:
代码如下:
</head>
<style>
body{
background-color:#000;
}
.textarea{
font-size:100px;
color:#fff;
text-shadow:0 0 5px #e0ea33,
0 0 15px #e0ea33,
0 0 25px #e0ea33;
margin-top:200px;
text-align:center;
}
</style>
<body>
<p class="textarea">帅</p><!--此处是文字内容-->
</body>
<script>
var text=document.queryselector('.textarea');//获取到我们的p标签
//在鼠标指针进入到p标签上时触发
text.onmouseenter=function(){
text.innerhtml='我是你爸爸';//设置p标签之间的 html
};
//在鼠标指针离开p标签上时触发
text.onmouseleave=function(){
text.innerhtml='帅';//设置p标签之间的 html
};
</script>
实现思路:
通过css中的text-shadow来实现文字的发光效果
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
css3 flex布局 justify-content:space-between 最后一行左对齐
网友评论