nbsp;html>Document 11 字体居中
我设置了子元素boxBar1 向做浮动,子元素boxBar2没有浮动,理论上他会给boxBar1让出他自己的那一部分呈现在页面上。

这时候我设置了boxBar2宽度和父亲宽度相等。但是我设置了字体居中,字体竟然没有相对于本身800的宽度居中。而是相对于本身宽度减去boxBar1的宽度然后再居中。这是为什么?
Your Answer
2 answers
Hot tools Tags
Hot Questions
Hiding the scroll bar on an HTML page
2026-01-04 08:01:05
Format date to MM/dd/yyyy in JavaScript [duplicate]
2026-01-04 07:43:21
Duplicating a MySQL table, indices, and data
2026-01-04 07:22:21
Find by key deep in a nested array
2026-01-04 07:01:20
Remove Primary Key in MySQL
2026-01-03 22:43:21
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20416
7
20416
7
wifi shows no ip assigned
13576
4
13576
4
Hot Article
How to set up price alerts so you don't miss key entry points?
2026-01-01
By DDD
Why do professional traders advise newbies to start with low leverage?
2026-01-01
By DDD
Tutorial on existence check of nested array values in PHP multidimensional array
2025-12-28
By DDD
How to draw dotted lines in PS How to draw various dotted lines in PS
2025-12-28
By DDD
How to Fix a 'KERNEL_DATA_INPAGE_ERROR' on Windows?
2026-01-02
By 下次还敢






