好吧所以我用html制作了我的网站,但是顶部有一些白线条,我不知道为什么他们在那里我觉得我的源代码出错了,如果有人可以帮忙搞清楚为什么他们在那里是伟大的(我是新的HTML,只知道基础知识)
description "Puma Background Worker"
# no "start on", we don't want to automatically start
stop on (stopping puma-manager or runlevel [06])
# change apps to match your deployment user if you want to use this as a less privileged user (recommended!)
setuid user
setgid user
respawn
respawn limit 3 30
instance ${app}
script
# source ENV variables manually as Upstart doesn't, eg:
. /etc/server-vars
exec /bin/bash <<'EOT'
# set HOME to the setuid user's home, there doesn't seem to be a better, portable way
export HOME="$(eval echo ~$(id -un))"
if [ -d "/usr/local/rbenv/bin" ]; then
export PATH="/usr/local/rbenv/bin:/usr/local/rbenv/shims:$PATH"
elif [ -d "$HOME/.rbenv/bin" ]; then
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
elif [ -f /etc/profile.d/rvm.sh ]; then
source /etc/profile.d/rvm.sh
elif [ -f /usr/local/rvm/scripts/rvm ]; then
source /etc/profile.d/rvm.sh
elif [ -f "$HOME/.rvm/scripts/rvm" ]; then
source "$HOME/.rvm/scripts/rvm"
elif [ -f /usr/local/share/chruby/chruby.sh ]; then
source /usr/local/share/chruby/chruby.sh
if [ -f /usr/local/share/chruby/auto.sh ]; then
source /usr/local/share/chruby/auto.sh
fi
# if you aren't using auto, set your version here
# chruby 2.0.0
fi
cd $app
logger -t puma "Starting server: $app"
exec bundle exec puma -C config/puma.rb
EOT
end script
答案 0 :(得分:2)
问题是10px填充底部。 在文件n7.css第31行中,您将看到以下内容:
#content {
background-color: #ffffff;
padding-bottom: 10px;
}
更改:
#content {
background-color: #ffffff;
padding-bottom: 0px;
}
让我知道它是怎么回事。
答案 1 :(得分:1)
这里出问题的原因;
#content {
background-color: #ffffff;
padding-bottom: 10px;
}
但我明白了,&#34;你对css&#34;不是很熟悉所以此代码位于服务器的文件中(http://i2.silvergames.com/css/n7.css)。请到那里,找到上面的代码并更改:
#content {
background-color: #ffffff;
padding-bottom: 0px;
}
这就是全部。