小编use*_*119的帖子

双色文字

有没有办法在下面的示例中实现效果,而不重复内容,只使用html和css?

所以你基本上有一个文字,一边是color1和background1,另一边是color2加background2?

要复制的示例代码:

<div style="width: 50%; background-color: black; overflow: hidden; height: 300px;display: inline-block;">
    <p style="width: 200%; color: white">
    I am multicolor text. Multicolor text i am. This really does feel great. However, to get this, i need duplicated content. Is there a css way to do the same effect without duplicated content? I am multicolor text. Multicolor text i am. This really does feel great. However, to get this, i need duplicated content. Is there a css way to do …
Run Code Online (Sandbox Code Playgroud)

html css text

6
推荐指数
1
解决办法
127
查看次数

标签 统计

css ×1

html ×1

text ×1