84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
小伙看你根骨奇佳,潜力无限,来学PHP伐。
I didn’t read your code. But there are many ways to center the fast element: 1: display:inline-block <style>
.total{width:1000px;height:auto;border:1px solid #ccc;text-align:center;} .center{width:200px;height:50px;background-color:blue;display:inline-block;}
</style> <p class='total'>
<p class='center'></p>
</p>
2: Unknown width and height: position:absolute;left:50%;top:50%;transform:translate(-50%,-50%); <style>
.total{width:1000px;height:auto;border:1px solid #ccc;} .center{width:200px;height:50px;background-color:blue;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);}
2: Known width and height: width:200px;height:200px;position:absolute;left:50%;top:50%;transform:translate(-100px,-100px); <style>
.total{width:1000px;height:auto;border:1px solid #ccc;} .center{width:200px;height:50px;background-color:blue;position:absolute;left:50%;top:50%;transform:translate(-100px,-100px)}
The above code has not been tested, if you have any questions please ask
Infelx plus justify plus align are not easy to use, but remember to be compatible
margin:0 auto
http://jackzong.github.io/201...
I didn’t read your code.
But there are many ways to center the fast element:
1: display:inline-block
<style>
</style>
<p class='total'>
</p>
2: Unknown width and height: position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
<style>
</style>
<p class='total'>
</p>
2: Known width and height: width:200px;height:200px;position:absolute;left:50%;top:50%;transform:translate(-100px,-100px);
<style>
</style>
<p class='total'>
</p>
The above code has not been tested, if you have any questions please ask
Infelx plus justify plus align are not easy to use, but remember to be compatible
margin:0 auto
http://jackzong.github.io/201...