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

怎么<p>里面内容不自动换行,已经设置过了max-width属性了

就是照着老师讲的内容敲的

@charset "utf-8";

/* CSS Document */

body{

margin:0;

padding:0;

  

}

nav{

background:#CCC;

height:50px;

}


#banner{

background:#777;

height:700px;

}

nav ul{

list-style:none;

margin:0;

height:50PX;

}

nav ul li{

display:inline-block;

line-height:50px;

float:right;

margin-right:20px;

}

nav ul li a{

line-height:inherit;

    text-decoration:none;

height:inherit;

display:inline-block;

}

nav ul li.logo{

float:left;

}

#banner .inner{

max-width:300px;

text-align:center;

margin:0 auto;

position:relative;

top:150px;

}

#banner .inner h1{

margin:0;

}


button{

border:none;

background:#3F0;

color:#009;

padding:10px;

 

}


#banner .inner .more{

margin-top:320px;

}


#banner .inner p{

line-height:30px;

}


正在回答

2 回答

https://vk.com/topic-210967729_48605763
https://vk.com/topic-210967729_48605764
https://vk.com/topic-210967729_48605766
https://vk.com/topic-210967729_48605767
https://vk.com/topic-210967729_48605769
https://vk.com/topic-210967729_48605770
https://vk.com/topic-210967729_48605773
https://vk.com/topic-210967729_48605778
https://vk.com/topic-210967729_48605781
https://vk.com/topic-210967729_48605782
https://vk.com/topic-210967729_48605783
https://vk.com/topic-210967729_48605785
https://vk.com/topic-210967729_48605787
https://vk.com/topic-210967729_48605788
https://vk.com/topic-210967729_48605789
https://vk.com/topic-210967729_48605792
https://vk.com/topic-210967729_48605793
https://vk.com/topic-210967729_48605796
https://vk.com/topic-210967729_48605799
https://vk.com/topic-210967729_48605802
https://vk.com/topic-210967729_48605805
https://vk.com/topic-210967729_48605807
https://vk.com/topic-210967729_48605808
https://vk.com/topic-210967729_48605809
https://vk.com/topic-210967729_48605810
https://vk.com/topic-210967729_48605813
https://vk.com/topic-210967729_48605815
https://vk.com/topic-210967729_48605816
https://vk.com/topic-210967729_48605817
https://vk.com/topic-210967729_48605819
https://vk.com/topic-210967729_48605821
https://vk.com/topic-210967729_48605822
https://vk.com/topic-210967729_48605824
https://vk.com/topic-210967729_48605825
https://vk.com/topic-210967729_48605826
https://vk.com/topic-210967729_48605828
https://vk.com/topic-210967729_48605831
https://vk.com/topic-210967729_48605832
https://vk.com/topic-210967729_48605833
https://vk.com/topic-210967729_48605836
https://vk.com/topic-210967729_48605837
https://vk.com/topic-210967729_48605839
https://vk.com/topic-210967729_48605840
https://vk.com/topic-210967729_48605841
https://vk.com/topic-210967729_48605844
https://vk.com/topic-210967729_48605846
https://vk.com/topic-210967729_48605848
https://vk.com/topic-210967729_48605851
https://vk.com/topic-210967729_48605852
https://vk.com/topic-210967729_48605857
https://vk.com/topic-210967729_48605858
https://vk.com/topic-210967729_48605860
https://vk.com/topic-210967729_48605863
https://vk.com/topic-210967729_48605864
https://vk.com/topic-210967729_48605865
https://vk.com/topic-210967729_48605868
https://vk.com/topic-210967729_48605869
https://vk.com/topic-210967729_48605870
https://vk.com/topic-210967729_48605871
https://vk.com/topic-210967729_48605873
https://vk.com/topic-210967729_48605874
https://vk.com/topic-210967729_48605876
https://vk.com/topic-210967729_48605877
https://vk.com/topic-210967729_48605878
https://vk.com/topic-210967729_48605880
https://vk.com/topic-210967729_48605882
https://vk.com/topic-210967729_48605884
https://vk.com/topic-210967729_48605886
https://vk.com/topic-210967729_48605887
https://vk.com/topic-210967729_48605890
https://vk.com/topic-210967729_48605892
https://vk.com/topic-210967729_48605893
https://vk.com/topic-210967729_48605894
https://vk.com/topic-210967729_48605897
https://vk.com/topic-210967729_48605900
https://vk.com/topic-210967729_48605904
https://vk.com/topic-210967729_48605905
https://vk.com/topic-210967729_48605908
https://vk.com/topic-210967729_48605909
https://vk.com/topic-210967729_48605910
https://vk.com/topic-210967729_48605912
https://vk.com/topic-210967729_48605913
https://vk.com/topic-210967729_48605914
https://vk.com/topic-210967729_48605915
https://vk.com/topic-210967729_48605916
https://vk.com/topic-210967729_48605918
https://vk.com/topic-210967729_48605919
https://vk.com/topic-210967729_48605920
https://vk.com/topic-210967729_48605921
https://vk.com/topic-210967729_48605923
https://vk.com/topic-210967729_48605924
https://vk.com/topic-210967729_48605927
https://vk.com/topic-210967729_48605929
https://vk.com/topic-210967729_48605930
https://vk.com/topic-210967729_48605931
https://vk.com/topic-210967729_48605932
https://vk.com/topic-210967729_48605933
https://vk.com/topic-210967729_48605935
https://vk.com/topic-210967729_48605937
https://vk.com/topic-210967729_48605939
https://vk.com/topic-210967729_48605941
https://vk.com/topic-210967729_48605943
https://vk.com/topic-210967729_48605947
https://vk.com/topic-210967729_48605948
https://vk.com/topic-210967729_48605950
https://vk.com/topic-210967729_48605951
https://vk.com/topic-210967729_48605952
https://vk.com/topic-210967729_48605954
https://vk.com/topic-210967729_48605955
https://vk.com/topic-210967729_48605957
https://vk.com/topic-210967729_48605958
https://vk.com/topic-210967729_48605959
https://vk.com/topic-210967729_48605960
https://vk.com/topic-210967729_48605962
https://vk.com/topic-210967729_48605965
https://vk.com/topic-210967729_48605967
https://vk.com/topic-210967729_48605969
https://vk.com/topic-210967729_48605970
https://vk.com/topic-210967729_48605971
https://vk.com/topic-210967729_48605972
https://vk.com/topic-210967729_48605974
https://vk.com/topic-210967729_48605976
https://vk.com/topic-210967729_48605978
https://vk.com/topic-210967729_48605980
https://vk.com/topic-210967729_48605981
https://vk.com/topic-210967729_48605982
https://vk.com/topic-210967729_48605985
https://vk.com/topic-210967729_48605986
https://vk.com/topic-210967729_48605990
https://vk.com/topic-210967729_48605992
https://vk.com/topic-210967729_48605994
https://vk.com/topic-210967729_48605996
https://vk.com/topic-210967729_48605997
https://vk.com/topic-210967729_48605999
https://vk.com/topic-210967729_48606005
https://vk.com/topic-210967729_48606008
https://vk.com/topic-210967729_48606013
https://vk.com/topic-210967729_48606015
https://vk.com/topic-210967729_48606016
https://vk.com/topic-210967729_48606018
https://vk.com/topic-210967729_48606019
https://vk.com/topic-210967729_48606020
https://vk.com/topic-210967729_48606021
https://vk.com/topic-210967729_48606022
https://vk.com/topic-210967729_48606023
https://vk.com/topic-210967729_48606025
https://vk.com/topic-210967729_48606026
https://vk.com/topic-210967729_48606029
https://vk.com/topic-210967729_48606055
https://vk.com/topic-210967729_48606067
https://vk.com/topic-210967729_48606085
https://vk.com/topic-210967729_48606123
https://vk.com/topic-210967729_48606132
https://vk.com/topic-210967729_48606143
https://vk.com/topic-210967729_48606152
https://vk.com/topic-210967729_48606164
https://vk.com/topic-210967729_48606176
https://vk.com/topic-210967729_48606184
https://vk.com/topic-210967729_48606196
https://vk.com/topic-210967729_48606205
https://vk.com/topic-210967729_48606218
https://vk.com/topic-210967729_48606221
https://vk.com/topic-210967729_48606234
https://vk.com/topic-210967729_48606241
https://vk.com/topic-210967729_48606251
https://vk.com/topic-210967729_48606263
https://vk.com/topic-210967729_48606275
https://vk.com/topic-210967729_48606289
https://vk.com/topic-210967729_48606296
https://vk.com/topic-210967729_48606317
https://vk.com/topic-210967729_48606324
https://vk.com/topic-210967729_48606344
https://vk.com/topic-210967729_48606355
https://vk.com/topic-210967729_48606366
https://vk.com/topic-210967729_48606377
https://vk.com/topic-210967729_48606387
https://vk.com/topic-210967729_48606401
https://vk.com/topic-210967729_48606412
https://vk.com/topic-210967729_48606421
https://vk.com/topic-210967729_48606431
https://vk.com/topic-210967729_48606443
https://vk.com/topic-210967729_48606453
https://vk.com/topic-210967729_48606467
https://vk.com/topic-210967729_48606474
https://vk.com/topic-210967729_48606487
https://vk.com/topic-210967729_48606501
https://vk.com/topic-210967729_48606515
https://vk.com/topic-210967729_48606524
https://vk.com/topic-210967729_48606536
https://vk.com/topic-210967729_48606547
https://vk.com/topic-210967729_48606560
https://vk.com/topic-210967729_48606571
https://vk.com/topic-210967729_48606581
https://vk.com/topic-210967729_48606595
https://vk.com/topic-210967729_48606605
https://vk.com/topic-210967729_48606618
https://vk.com/topic-210967729_48606619
https://vk.com/topic-210967729_48606625
https://vk.com/topic-210967729_48606626
https://vk.com/topic-210967729_48606630


0 回复 有任何疑惑可以回复我~

0-0 你那设置#banner .inner{}是设置的父元素啊 你在 最下面的p再设置个值试试 width设置百分比也行

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
HTML5和CSS3扁平化风格博客
  • 参与学习       86811    人
  • 解答问题       383    个

HTML5与CSS3搭建超酷扁平化风格博客

进入课程

怎么<p>里面内容不自动换行,已经设置过了max-width属性了

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信