css实现钢板钢铁文字效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现钢板钢铁文字效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { /* Metal by Etienne Martin. https://unsplash.com/photos/v6uiP2MD6vs */ --metal-tex: url(//repo.bfw.wiki/bfwrepo/image/62cb76b4d660b.png); background: black; color: white; font-family: system-ui, sans-serif; } a { color: skyblue; font-weight: bold; } .main { margin: 40px auto; display: flex; flex-direction: column; justify-content: center; align-items: center; } .metal { position: relative; margin: 15vh auto; color: transparent; font-family: impact, sans-serif; font-size: 25vw; letter-spacing: 0.05em; background-image: var(--metal-tex); background-size: cover; background-clip: text; -.........完整代码请登录后点击上方下载按钮下载查看
网友评论0