请看下图,我正在尝试切割右侧的菜单容器的一部分,它很简单,没有任何东西,此刻不需要它,所以我该怎么把它砍下来
这是我想减少的部分,因为它没用,浪费空间
我尝试使用
margin-top: 8px;
margin-bottom: 3px;
他们不工作只会移动文本
这是它的内容
width: 1170px;
background: #fff;
box-shadow: rgba(0,0,0,.5) 0 3px 20px 0;
width: 1170px;
background: #fff;
box-shadow: rgba(0,0,0,.5) 0 3px 20px 0;
font-family: Arial, serif;
更改with会移动文本而不是容器
答案 0 :(得分:0)
使用margin-top
和margin-bottom
只会更改容器正上方和下方的边距。尝试在容器上设置max-width属性:
#YourContainer {
max-width: 1000px; /*You may need to change this to suit your page*/
}
答案 1 :(得分:0)
我修好了谢谢你们
words = []
freqs = []
for line in sorted(original list): #takes all the lines in a text and sorts them
line = line.rstrip() #strips them of their spaces
if line not in words: #checks to see if line is in words
words.append(line) #if not it adds it to the end words
freqs.append(1) #and adds 1 to the end of freqs
else:
index = words.index(line) #if it is it will find where in words
freqs[index] += 1 #and use the to change add 1 to the matching index in freqs