3 回答
TA贡献10条经验 获得超10个赞
1、text-align是让文本居中 <div>我是第一个div</div> -> 这里的div是块级元素没错,但是div里的内容(我是第一个div)是文本, 即是inline-block 直接 div{text-align:center;}
2、举个例子:<div><img src="">我是div里面的inline-block</<img><div> 以上纯属个人理解
TA贡献446条经验 获得超0个赞
https://www.imooc.com/wenda/detail/348889
https://www.imooc.com/wenda/detail/345150
https://www.imooc.com/wenda/detail/351229
https://www.imooc.com/wenda/detail/342279
https://www.imooc.com/wenda/detail/386187
https://www.imooc.com/wenda/detail/352075
https://www.imooc.com/wenda/detail/356502
https://www.imooc.com/wenda/detail/389281
https://www.imooc.com/wenda/detail/356918
https://www.imooc.com/wenda/detail/386197
https://www.imooc.com/wenda/detail/394941
https://www.imooc.com/wenda/detail/382074
https://www.imooc.com/wenda/detail/389425
https://www.imooc.com/wenda/detail/395487
https://www.imooc.com/wenda/detail/356048
https://www.imooc.com/wenda/detail/382784
https://www.imooc.com/wenda/detail/385817
https://www.imooc.com/wenda/detail/384128
https://www.imooc.com/wenda/detail/385494
https://www.imooc.com/wenda/detail/388316
https://www.imooc.com/wenda/detail/383442
https://www.imooc.com/wenda/detail/355450
https://www.imooc.com/wenda/detail/342033
https://www.imooc.com/wenda/detail/387423
https://www.imooc.com/wenda/detail/362348
https://www.imooc.com/wenda/detail/383630
https://www.imooc.com/wenda/detail/387361
https://www.imooc.com/wenda/detail/410608
https://www.imooc.com/wenda/detail/377540
https://www.imooc.com/wenda/detail/388328
https://www.imooc.com/wenda/detail/385555
https://www.imooc.com/wenda/detail/363399
https://www.imooc.com/wenda/detail/356619
https://www.imooc.com/wenda/detail/383239
https://www.imooc.com/wenda/detail/377654
https://www.imooc.com/wenda/detail/362346
https://www.imooc.com/wenda/detail/417335
https://www.imooc.com/wenda/detail/356831
https://www.imooc.com/wenda/detail/387320
https://www.imooc.com/wenda/detail/384104
https://www.imooc.com/wenda/detail/383498
https://www.imooc.com/wenda/detail/385846
https://www.imooc.com/wenda/detail/546033
https://www.imooc.com/wenda/detail/356647
https://www.imooc.com/wenda/detail/381372
https://www.imooc.com/wenda/detail/390126
https://www.imooc.com/wenda/detail/381670
https://www.imooc.com/wenda/detail/385845
https://www.imooc.com/wenda/detail/390690
https://www.imooc.com/wenda/detail/362141
https://www.imooc.com/wenda/detail/342389
https://www.imooc.com/wenda/detail/339680
https://www.imooc.com/wenda/detail/383525
https://www.imooc.com/wenda/detail/394965
https://www.imooc.com/wenda/detail/390738
https://www.imooc.com/wenda/detail/459186
https://www.imooc.com/wenda/detail/382828
https://www.imooc.com/wenda/detail/356542
https://www.imooc.com/wenda/detail/377562
https://www.imooc.com/wenda/detail/350025
https://www.imooc.com/wenda/detail/352280
https://www.imooc.com/wenda/detail/381464
https://www.imooc.com/wenda/detail/363055
https://www.imooc.com/wenda/detail/356454
https://www.imooc.com/wenda/detail/339921
https://www.imooc.com/wenda/detail/385831
https://www.imooc.com/wenda/detail/408173
https://www.imooc.com/wenda/detail/385582
https://www.imooc.com/wenda/detail/332808
https://www.imooc.com/wenda/detail/353369
https://www.imooc.com/wenda/detail/390585
https://www.imooc.com/wenda/detail/362177
https://www.imooc.com/wenda/detail/344918
https://www.imooc.com/wenda/detail/356011
https://www.imooc.com/wenda/detail/350246
https://www.imooc.com/wenda/detail/362796
https://www.imooc.com/wenda/detail/363054
https://www.imooc.com/wenda/detail/395478
https://www.imooc.com/wenda/detail/352714
- 3 回答
- 0 关注
- 1484 浏览
相关问题推荐
添加回答
举报