网址 Jiawo.de
打开后可以看到加我的中文是不变的.后面的各种社交名称会随机变动,这都很正常没什么问题,但是样式上还是很怪,就是当字数不一致时,他整体就会变动,这样的效果很 low,想要你们帮我变的高级点。
现在就挺好的
厉害
#fixed-text-container{
font-size: 24px;
}
#fixed-text-container >span:last-child { display: inline-block; width: 100px; font-size: 24px;}
试试
ai就写出来了,两段字分两个元素,保持一行水平居中,各占宽度一半,左边文字靠右,右边文字靠左
<div class="container"> <div class="left">加我的</div> <div class="right">微信</div> </div>
.container { display: flex; /* 使用Flexbox布局 */ justify-content: center; /* 水平居中 */ align-items: center; /* 垂直居中 */ text-align: center; /* 使得文本在div内居中对齐 */ width: 100%; /* 容器宽度设为100% */ } .left, .right { flex: 1; /* 两个div各占一半宽度 */ padding: 10px; /* 内边距 */ border: 1px solid #000; /* 边框 */ box-sizing: border-box; /* 边框计算在宽度内 */ } .left { text-align: right; /* 文本靠右对齐 */ } .right { text-align: left; /* 文本靠左对齐 */ }
手机端字太小了吧
[引用消息已被删除]
分享了
袁某人 ai就写出来了,两段字分两个元素,保持一行水平居中,各占宽度一半,左边文字靠右,右边文字靠左 <div class="container"> ...
好用