为了账号安全,请及时绑定邮箱和手机立即绑定

写的前端页面当浏览器缩小后右侧会有一段空白是怎么回事,怎么改正

写的前端页面当浏览器缩小后右侧会有一段空白是怎么回事,怎么改正

成长前端初学者 2017-07-17 18:53:43
写的前端页面当浏览器缩小后右侧会有一段空白是怎么回事,怎么改正
查看完整描述

3 回答

?
慕设计9479289

TA贡献3条经验 获得超0个赞

https://www.diaochapai.com/surve ... 6-a8a2-d72bfc379a84
https://www.diaochapai.com/survey3163315
https://www.diaochapai.com/surve ... b-a67e-0d63e9f70283
https://www.diaochapai.com/survey3163317
https://www.diaochapai.com/surve ... f-a92f-bc3973ce263e
https://www.diaochapai.com/survey3163319
https://www.diaochapai.com/surve ... 6-9e15-a525312a71af
https://www.diaochapai.com/survey3163321
https://www.diaochapai.com/surve ... b-8aa8-c4e1ad5f21f1
https://www.diaochapai.com/survey3163323
https://www.diaochapai.com/surve ... e-a65f-a8b6ded33eb9
https://www.diaochapai.com/survey3163325
https://www.diaochapai.com/surve ... 8-8efa-c5f0930fc2b3
https://www.diaochapai.com/survey3163357
https://www.diaochapai.com/surve ... 5-be7a-ff017202027f
https://www.diaochapai.com/survey3163355
https://www.diaochapai.com/surve ... 4-9585-668a50e9285b
https://www.diaochapai.com/survey3163359
https://www.diaochapai.com/surve ... c-ae7f-e09dcfc895d5
https://www.diaochapai.com/survey3163379
https://www.diaochapai.com/surve ... f-acde-5d5124c4dcec
https://www.diaochapai.com/survey3163385
https://www.diaochapai.com/surve ... 9-924d-60b96d77daea
https://www.diaochapai.com/survey3163387
https://www.diaochapai.com/surve ... 8-985a-8476d7ce8119
https://www.diaochapai.com/survey3163395
https://www.diaochapai.com/surve ... 9-8924-1033478dd414
https://www.diaochapai.com/survey3163407
https://www.diaochapai.com/surve ... 7-8001-31f3aa686453
https://www.diaochapai.com/survey3163419
https://www.diaochapai.com/surve ... 5-99ea-56ff1be17b1d
https://www.diaochapai.com/survey3163427
https://www.diaochapai.com/surve ... 5-ae06-17fb1dd75d93
https://www.diaochapai.com/survey3163443
https://www.diaochapai.com/surve ... e-b2b3-bedf09f239ec
https://www.diaochapai.com/survey3163445
https://www.diaochapai.com/surve ... f-a405-a744d7f975d6
https://www.diaochapai.com/survey3163448
https://www.diaochapai.com/surve ... e-bd8e-9ed88de6e30c
https://www.diaochapai.com/survey3163465
https://www.diaochapai.com/surve ... a-971c-5b580ac8ecca
https://www.diaochapai.com/survey3163471
https://www.diaochapai.com/surve ... c-ad42-f777710de8e1
https://www.diaochapai.com/survey3163479
https://www.diaochapai.com/surve ... 3-b52b-43cb698e407d
https://www.diaochapai.com/survey3163493
https://www.diaochapai.com/surve ... 9-b4f7-990b123a3171
https://www.diaochapai.com/survey3163499
https://www.diaochapai.com/surve ... b-a875-9ed524314a78
https://www.diaochapai.com/survey3163505
https://www.diaochapai.com/surve ... e-9c25-f61e811b3720
https://www.diaochapai.com/survey3163515
https://www.diaochapai.com/surve ... 0-a207-1fb2a2a07d0b
https://www.diaochapai.com/survey3163521
https://www.diaochapai.com/surve ... 8-ae0d-896b5e62b7c8
https://www.diaochapai.com/survey3163537
https://www.diaochapai.com/surve ... b-85b4-7a0585a88f05
https://www.diaochapai.com/survey3163543
https://www.diaochapai.com/surve ... b-bcc0-f5666bb33626
https://www.diaochapai.com/survey3163545
https://www.diaochapai.com/surve ... c-a97f-3fd384e86f4f
https://www.diaochapai.com/survey3163549
https://www.diaochapai.com/surve ... 9-a945-e511cfab6ecf
https://www.diaochapai.com/survey3163577
https://www.diaochapai.com/surve ... 2-9c22-8dd6f49f834f
https://www.diaochapai.com/survey3163583
https://www.diaochapai.com/surve ... 1-a3e3-633d0e7aca27
https://www.diaochapai.com/survey3163591
https://www.diaochapai.com/surve ... 0-b3aa-b727c92e2a9c
https://www.diaochapai.com/survey3163599
https://www.diaochapai.com/surve ... f-92ce-b44bb544e739
https://www.diaochapai.com/survey3163601
https://www.diaochapai.com/surve ... 4-b384-60b08f789708
https://www.diaochapai.com/survey3163617
https://www.diaochapai.com/surve ... b-ad20-e029bce32fc9
https://www.diaochapai.com/survey3163625
https://www.diaochapai.com/surve ... 0-95b7-db41180ab4dd
https://www.diaochapai.com/survey3163627
https://www.diaochapai.com/surve ... 4-bd35-e981153d7c97
https://www.diaochapai.com/survey3163631
https://www.diaochapai.com/surve ... 2-bd02-0ff937d6af8f
https://www.diaochapai.com/survey3163655
https://www.diaochapai.com/surve ... 9-bdee-f455932e7660
https://www.diaochapai.com/survey3163657
https://www.diaochapai.com/surve ... 4-96ae-fc7a9407b2c7
https://www.diaochapai.com/survey3163659
https://www.diaochapai.com/surve ... b-b1d3-83015d8abce9
https://www.diaochapai.com/survey3163669
https://www.diaochapai.com/surve ... 4-babb-3d5d4ce16ee8
https://www.diaochapai.com/survey3163671
https://www.diaochapai.com/surve ... d-8e4e-64e76a8c5af9
https://www.diaochapai.com/survey3163685
https://www.diaochapai.com/surve ... 1-98c9-def0969de452
https://www.diaochapai.com/survey3163693
https://www.diaochapai.com/surve ... 4-9782-798936dac9df
https://www.diaochapai.com/survey3163699
https://www.diaochapai.com/surve ... f-aabf-a02e7c12a19e
https://www.diaochapai.com/survey3163701
https://www.diaochapai.com/surve ... 7-ad25-33dbc1902c0f
https://www.diaochapai.com/survey3163713
https://www.diaochapai.com/surve ... 2-8026-493e32b59401
https://www.diaochapai.com/survey3163723
https://www.diaochapai.com/surve ... 2-b006-b00c6186346e
https://www.diaochapai.com/survey3163731
https://www.diaochapai.com/surve ... 1-8b66-74ce0ce94d98
https://www.diaochapai.com/survey3163737
https://www.diaochapai.com/surve ... d-8649-98fe41ab7551
https://www.diaochapai.com/survey3163747
https://www.diaochapai.com/surve ... 7-b508-f1699162c3e1
https://www.diaochapai.com/survey3163763
https://www.diaochapai.com/surve ... 4-925f-8759af5a74bd
https://www.diaochapai.com/survey3163767
https://www.diaochapai.com/surve ... 3-856c-073eaf2c1958
https://www.diaochapai.com/survey3163775
https://www.diaochapai.com/surve ... 2-94e6-9cf4ca900a39
https://www.diaochapai.com/survey3163781
https://www.diaochapai.com/surve ... 4-abc9-1b0db023ff17
https://www.diaochapai.com/survey3163799
https://www.diaochapai.com/surve ... e-aedb-978dc96316a9
https://www.diaochapai.com/survey3163801
https://www.diaochapai.com/surve ... 5-88ff-7dc9ec45ee67
https://www.diaochapai.com/survey3163815
https://www.diaochapai.com/surve ... 9-8290-cd33f76c5e51
https://www.diaochapai.com/survey3163817
https://www.diaochapai.com/surve ... 6-acd1-409e0451ec71
https://www.diaochapai.com/survey3163829
https://www.diaochapai.com/surve ... 7-a793-dcaa67d8d0c5
https://www.diaochapai.com/survey3163839
https://www.diaochapai.com/surve ... b-9248-f0ddc5f08fc2
https://www.diaochapai.com/survey3163841
https://www.diaochapai.com/surve ... d-8789-aa995582c398
https://www.diaochapai.com/survey3163843
https://www.diaochapai.com/surve ... 9-80fd-eb8b1a82994a
https://www.diaochapai.com/survey3163849
https://www.diaochapai.com/surve ... c-962e-2e7e6fc21e22
https://www.diaochapai.com/survey3163855
https://www.diaochapai.com/surve ... 7-94ac-102e72aa27b4
https://www.diaochapai.com/survey3163857
https://www.diaochapai.com/surve ... 6-85b3-a737551a99e5
https://www.diaochapai.com/survey3163863
https://www.diaochapai.com/surve ... 0-b5ae-b936a433afb8
https://www.diaochapai.com/survey3163867
https://www.diaochapai.com/surve ... 5-99df-b9dd4fed13de
https://www.diaochapai.com/survey3163871
https://www.diaochapai.com/surve ... c-b4f1-45830c9dcb56
https://www.diaochapai.com/survey3163879
https://www.diaochapai.com/surve ... e-9829-5b7e38848e2d
https://www.diaochapai.com/survey3163885
https://www.diaochapai.com/surve ... 5-80bb-d57f9fd5a0ec
https://www.diaochapai.com/survey3163887
https://www.diaochapai.com/surve ... 3-bcdc-d0910c3e2370
https://www.diaochapai.com/survey3163891
https://www.diaochapai.com/surve ... 1-83ab-090603be6a15
https://www.diaochapai.com/survey3163897
https://www.diaochapai.com/surve ... 5-9d72-1b7b6c714cde
https://www.diaochapai.com/survey3163901
https://www.diaochapai.com/surve ... d-85ee-849f7e06219c
https://www.diaochapai.com/survey3163905
https://www.diaochapai.com/surve ... c-a502-259142cb8274
https://www.diaochapai.com/survey3163911
https://www.diaochapai.com/surve ... 0-aa46-38eb679611f3
https://www.diaochapai.com/survey3163913
https://www.diaochapai.com/surve ... b-8081-d42c5eb9fa25
https://www.diaochapai.com/survey3163931
https://www.diaochapai.com/surve ... f-9589-892281c64043
https://www.diaochapai.com/survey3163935
https://www.diaochapai.com/surve ... 5-9e94-ba6d6df79a18
https://www.diaochapai.com/survey3163941
https://www.diaochapai.com/surve ... 6-9cbd-e635ecc9c61d
https://www.diaochapai.com/survey3163951
https://www.diaochapai.com/surve ... 0-97d2-d6d89cd55ecc
https://www.diaochapai.com/survey3163959
https://www.diaochapai.com/surve ... 1-8111-3e5623f10329
https://www.diaochapai.com/survey3163965
https://www.diaochapai.com/surve ... 0-82ef-a1e56d1f636d
https://www.diaochapai.com/survey3163975
https://www.diaochapai.com/surve ... 5-b2d4-d16702fb9839
https://www.diaochapai.com/survey3163981
https://www.diaochapai.com/surve ... 4-b8e3-27e4987511b5
https://www.diaochapai.com/survey3163987
https://www.diaochapai.com/surve ... 2-b458-fbd5fb67a2be
https://www.diaochapai.com/survey3163989
https://www.diaochapai.com/surve ... 0-88a5-1ca4e4c902b3
https://www.diaochapai.com/survey3163993
https://www.diaochapai.com/surve ... 8-ba7a-a6d548a5a4c0
https://www.diaochapai.com/survey3163999
https://www.diaochapai.com/surve ... 9-8e05-703cf8ac3240
https://www.diaochapai.com/survey3164001
https://www.diaochapai.com/surve ... 3-adc8-2a202f35b8d0
https://www.diaochapai.com/survey3164007
https://www.diaochapai.com/surve ... a-8e78-55ca22f2c7b1
https://www.diaochapai.com/survey3164011
https://www.diaochapai.com/surve ... 5-b3c7-1d3f9f0eb550
https://www.diaochapai.com/survey3164017
https://www.diaochapai.com/surve ... 0-881c-0852a71d5a73
https://www.diaochapai.com/survey3164021
https://www.diaochapai.com/surve ... 9-98c6-df66856bb24d
https://www.diaochapai.com/survey3164029
https://www.diaochapai.com/surve ... 1-8e08-24ab3f3e8c51
https://www.diaochapai.com/survey3164035
https://www.diaochapai.com/surve ... 6-800b-ec3bc41b1bc6
https://www.diaochapai.com/survey3164043
https://www.diaochapai.com/surve ... 6-a437-c071cacb2d5f
https://www.diaochapai.com/survey3164051
https://www.diaochapai.com/surve ... 4-b1c0-f87ae04b829d
https://www.diaochapai.com/survey3164053
https://www.diaochapai.com/surve ... 3-aacf-92371bd045ea
https://www.diaochapai.com/survey3164065
https://www.diaochapai.com/surve ... d-8a53-09cb1045f0de
https://www.diaochapai.com/survey3164077
https://www.diaochapai.com/surve ... 3-9a96-2f74c905c2c6
https://www.diaochapai.com/survey3164083
https://www.diaochapai.com/surve ... 5-aa0d-c1f755a04c01
https://www.diaochapai.com/survey3164087
https://www.diaochapai.com/surve ... 2-bd6a-88c82b9e5210
https://www.diaochapai.com/survey3164101
https://www.diaochapai.com/surve ... 5-9187-ed60ed290951
https://www.diaochapai.com/survey3164107
https://www.diaochapai.com/surve ... 0-b4ea-fcc081d8a4aa
https://www.diaochapai.com/survey3164111
https://www.diaochapai.com/surve ... 2-bbdf-63446fe746ff
https://www.diaochapai.com/survey3164129
https://www.diaochapai.com/surve ... 0-abcf-d9bc5ebefeb8
https://www.diaochapai.com/survey3164133
https://www.diaochapai.com/surve ... 6-9acf-31d1e7daa3a9
https://www.diaochapai.com/survey3164135
https://www.diaochapai.com/surve ... e-aa3a-75be553e20ac
https://www.diaochapai.com/survey3164141
https://www.diaochapai.com/surve ... a-9fcb-391bb84e893f
https://www.diaochapai.com/survey3164143
https://www.diaochapai.com/surve ... d-bbbd-b0ba3dc835db
https://www.diaochapai.com/survey3164147
https://www.diaochapai.com/surve ... 4-b3a3-ef3baf4d42f7
https://www.diaochapai.com/survey3164165
https://www.diaochapai.com/surve ... b-88eb-4206a0d5eb0f
https://www.diaochapai.com/survey3164167
https://www.diaochapai.com/surve ... 0-9bdf-a0555ae43f04
https://www.diaochapai.com/survey3164169
https://www.diaochapai.com/surve ... e-a43f-192875d9c2e1
https://www.diaochapai.com/survey3164189
https://www.diaochapai.com/surve ... 4-a545-450a65df7dbc
https://www.diaochapai.com/survey3164193
https://www.diaochapai.com/surve ... f-b2fd-6354f480ce82
https://www.diaochapai.com/survey3164195
https://www.diaochapai.com/surve ... b-9d91-c1b3dabd12d7
https://www.diaochapai.com/survey3164199
https://www.diaochapai.com/surve ... 2-aa4b-d1db4119c263
https://www.diaochapai.com/survey3164211
https://www.diaochapai.com/surve ... 2-b660-5317c814e0fc
https://www.diaochapai.com/survey3164217
https://www.diaochapai.com/surve ... 4-9e46-a528986b01cb
https://www.diaochapai.com/survey3164225
https://www.diaochapai.com/surve ... 7-89e5-cfcb50b88f1f
https://www.diaochapai.com/survey3164227
https://www.diaochapai.com/surve ... b-bf35-12a17367d09b
https://www.diaochapai.com/survey3164237
https://www.diaochapai.com/surve ... b-b44e-a96bda2c1a9f
https://www.diaochapai.com/survey3164251
https://www.diaochapai.com/surve ... c-8409-3f8e91b82177
https://www.diaochapai.com/survey3164257
https://www.diaochapai.com/surve ... 4-b9a5-dcdcd720bd9b
https://www.diaochapai.com/survey3164259
https://www.diaochapai.com/surve ... f-877b-54be5db410ff
https://www.diaochapai.com/survey3164271
https://www.diaochapai.com/surve ... a-93ff-ec77f4a4aa0a
https://www.diaochapai.com/survey3164279
https://www.diaochapai.com/surve ... e-99ea-eb748b401000
https://www.diaochapai.com/survey3164287
https://www.diaochapai.com/surve ... 8-a2b6-539885bb77ca
https://www.diaochapai.com/survey3164291
https://www.diaochapai.com/surve ... 9-979a-b194ef6dca4f
https://www.diaochapai.com/survey3164297
https://www.diaochapai.com/surve ... 4-b56d-5c4535e5d4b5
https://www.diaochapai.com/survey3164305
https://www.diaochapai.com/surve ... 1-9940-194d55780d60
https://www.diaochapai.com/survey3164307
https://www.diaochapai.com/surve ... 4-ab0f-85a500a400b5
https://www.diaochapai.com/survey3164315
https://www.diaochapai.com/surve ... 6-a026-5fbd31516873
https://www.diaochapai.com/survey3164321
https://www.diaochapai.com/surve ... 3-8bca-c1d6ac5ff423
https://www.diaochapai.com/survey3164323
https://www.diaochapai.com/surve ... 3-9ed2-26ffd1ce2173
https://www.diaochapai.com/survey3164327
https://www.diaochapai.com/surve ... b-9065-83cb6af145b1
https://www.diaochapai.com/survey3164331
https://www.diaochapai.com/surve ... a-825e-b7c332f6abb6
https://www.diaochapai.com/survey3164333
https://www.diaochapai.com/surve ... 8-93ea-b3efdb811557
https://www.diaochapai.com/survey3164339
https://www.diaochapai.com/surve ... e-95a7-2d204d5bea78
https://www.diaochapai.com/survey3164341
https://www.diaochapai.com/surve ... 8-ad55-ab00a68256cb
https://www.diaochapai.com/survey3164345
https://www.diaochapai.com/surve ... 2-a7d7-bb9b9db6bb16
https://www.diaochapai.com/survey3164347
https://www.diaochapai.com/surve ... 1-b434-1b406cff0822
https://www.diaochapai.com/survey3164355
https://www.diaochapai.com/surve ... 7-816e-4a2d357fe129
https://www.diaochapai.com/survey3164357
https://www.diaochapai.com/surve ... 3-a000-8dc3e770972e
https://www.diaochapai.com/survey3164359
https://www.diaochapai.com/surve ... d-b0bc-8645cbc48ce3
https://www.diaochapai.com/survey3164365
https://www.diaochapai.com/surve ... 0-aca2-4704e519133c
https://www.diaochapai.com/survey3164407
https://www.diaochapai.com/surve ... 8-b6f9-e227a7b647ef
https://www.diaochapai.com/survey3164417
https://www.diaochapai.com/surve ... 3-b8d3-51a5470cd8b6
https://www.diaochapai.com/survey3164437
https://www.diaochapai.com/surve ... 0-a57d-0a3bd264a74f
https://www.diaochapai.com/survey3164481
https://www.diaochapai.com/surve ... 5-8b25-e009c4deb3fd
https://www.diaochapai.com/survey3164514
https://www.diaochapai.com/surve ... e-9997-79766b0bb339
https://www.diaochapai.com/survey3164525


查看完整回答
反对 回复 2021-09-16
?
夜舞暗澜

TA贡献19条经验 获得超7个赞

需要看你的代码。

定宽出现空白很正常,弹性宽度可能与定位有关,flex布局与flex属性、元素宽度容器宽度有关,至于float布局……好吧,可能性就更多了。

查看完整回答
反对 回复 2017-07-18
?
weibo_小秋蜀黍_

TA贡献2条经验 获得超0个赞

当然也可以直接将这个body居中,初学可以试试,一般不建议

查看完整回答
反对 回复 2017-07-17
?
weibo_小秋蜀黍_

TA贡献2条经验 获得超0个赞

一般是你写的内容没居中的缘故。通常内容会写在一<div>或者<table>中,或者其他。

<div style="magin:0 auto">0表示上下间距为0,auto表示水平居中

<table align="center">这条属性也表示居中的意思

查看完整回答
反对 回复 2017-07-17
  • 3 回答
  • 0 关注
  • 3702 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信