我希望白色内容直接针对徽标,但我们之间会出现一个空行,尽管我将margin-top设置为0.
<body background="$request.getContextPath()/images/background.gif">
<img src="$request.getContextPath()/images/logo.gif" />
<div class="content">
这是css
img {
margin-top:0;
}
.content {
background: white;
margin-left:5%;
width: 779px;
overflow: hidden;
height: 273px;
border:0;
margin-top:0;
}
body {
font-family:Verdana, Geneva, sans-serif;
font-size: 12px;
line-height: 1.5;
border:0;
margin-top:0;
}
答案 0 :(得分:1)
尝试像这样的负余量
from random import randint
roomTypes = ['T', 'M', 'W', 'H', 'C']
randomRooms = []
for i in range(1,10):
randomRooms.append(roomTypes[randint(0, 4)])
dungeonLayout = '|' + '|'.join(randomRooms) + '|'
print('Room types are Temple |T|, Abandoned Military Base |M|, Wizard\'s Abodes |W|, House |H|, Church |C|')
print('_____________________________')
print(dungeonLayout)
print('_____________________________')