我在我的目标网页上将“条纹付款”按钮居中时遇到麻烦。我尝试了页边距,文本对齐并将其包装在div中无济于事。抱歉,我对CSS的了解不是很好,但我会感谢您的帮助!
sq = "ENST00000252519.8 ACE2-201 cdna:protein_coding ATGGAAGTATTTAAAGCGCCACCTATTGGGATATAAG"
array = sq.split("protein_coding")
array[0] = "<" + array[0] + "protein_coding"
答案 0 :(得分:-1)
尝试内联样式
<div style="text-align: center; width: 100%;"><button></button></div>
答案 1 :(得分:-1)
您可以轻松地使用flex将元素的宽度和高度居中放置:
<div class="center">
// Your Button
</div>
.center{
display: flex;
width: 100%;
justify-content: center;
}