搜了半天都没找到。
类似这种效果

搜了半天都没找到。
类似这种效果

|
aLazarusJul 1, 2019 via Android
1
你看下苹果官网的样式就知道了
|
|
xxx749Jul 1, 2019 via Android
2
滤镜
|
|
hoyixiJul 1, 2019
3
文字 Hello 的父元素添加 CSS:
background-clip: text |
|
hoyixiJul 1, 2019
4
文字 Hello 的父元素添加 CSS:
background-clip: text color: transparent; |
|
5
|
|
6
|
|
lzxgh621Jul 2, 2019 via iPhone
7
字体是可以设置背景色的呀,你把字体透明,再设置个背景色不就好了。
|
|
8
|
|
9
图层混合模式
|
|
hoyixiJul 2, 2019
10
没验证手机发不了 url 链接,所以直接发代码 ,保存为 html 浏览器试试看。(下面代码里背景图有个 url,自己把冒号和点替换成英文字符)
------------------------------------------------------------- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>你好骚啊</title> <style> .container { height: 100vh; width: 100%; display: flex; align-items:center; justify-content:center; } .hello { background-image: url('http 冒号 //t 点 im/hbpu'); background-size: 100% 100%; background-position: center; font-size: 250px; text-align: center; line-height: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; } </style> </head> <body> <div class="container"> <div class="hello"> 你好骚啊 </div> </div> </body> </html> |