文字外發(fā)光html
是這樣的話,我告訴你,HTML是網(wǎng)頁設(shè)計(jì)的基礎(chǔ)語言,它不能直接產(chǎn)生發(fā)光效果,但是我司通過CSS(層疊樣式表)或者JavaScript來達(dá)到這個(gè)效果。
```html
.glow-on-hover {
width: px;
height: px;
border: none;
outline: none;
color: #fff;
background: #;
cursor: pointer;
position: relative;
z-index: ;
}
.glow-on-hover:before {
content: "";
background: linear-gradient(deg, #ff, #ff, #fffb, #ff, #ffd, #bff, #aff, #ffc, #ff);
position: absolute;
top: -px;
left: -px;
background-size: %;
z-index: -;
filter: blur(px);
width: calc(% + px);
height: calc(% + px);
animation: glowing s infinite;
opacity: ;
}
.glow-on-hover:active {
color: #;
}
.glow-on-hover:active:before {
opacity: ;
}
@keyframes glowing {
% {background-position: ;}
% {background-position: % ;}
% {background-position: ;}
}
```
這段代碼將會(huì)創(chuàng)建個(gè)發(fā)光的文字按鈕。