div+css实现遮罩式文字星空背景效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现遮罩式文字星空背景效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;900&display=swap'); body { padding: 0; margin: 0; } .hero { background-color: #E0EDFE; color: #25657E; height: 100vh; display: flex; flex-direction: column; align-itens: center; justify-content: center; text-align: center; font-family: 'Onest', sans-serif; } .hero h2 { margin: 0 auto; font-weight: 900; font-size: 150px; line-height: 100%; text-transform: uppercase; } .text-bg-image { background-image: url(//repo.bfw.wiki/bfwrepo/image/65082238ca88f.png); -webkit-text-fill-color: trans.........完整代码请登录后点击上方下载按钮下载查看
网友评论0