我想让BUTTON TEXT中的文本透明,以便在后台看到THREE.JS动画,并且如果我不插入下面的css类,如您在第一张图片中所见,则显示IS WORKING:
.center-mine{top: 50%; left: 50%; transform: translate(-50%, -50%);}
但是这样的话,我把文本放在左上角,而我需要那个类把文本放在中间,正如你在
下面的第二张图片中看到的,但是有了那个类,BUTTON就不再是透明的了,
整个CSS和HTML是以下我使用来自TAILWIND类太。
x一个一个一个一个x一个一个二个x
我花了不少时间,但没有结果这个问题。
我不明白为什么我不能有透明的按钮也在中心。
(我是初学者)
谢谢
1条答案
按热度按时间zf9nrax11#
添加
position:absolute;
到中央地雷类其他地方左和顶部属性不工作;