我有一个css代码.为什么"底部:0"在"位置:相对"时不起作用 如果我放弃"位置:亲属;" 到"底部"工作,但"浮动:左"和"浮动:右"不在"宽度:930px;".抱歉,我的英语不好
<style type="text/css">
#main {
position: relative;
width: 930px;
padding:10px;
margin:0 auto;
}
#left {
position:absolute;
left:0;
}
#right {
position:absolute;
right:0;
}
#bottom {
position: absolute;
bottom:0;
}
</style>
<div id="main">
<div id="left">
Left
</div>
<div id="right">
Right
</div>
<div id="bottom">
Bottom
</div>
</div>
Run Code Online (Sandbox Code Playgroud) 我试着启用htaccess.我变了:
<Directory /var/www/abc.biz/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
至:
<Directory /var/www/abc.biz/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
但我得到500(内部服务器)错误.为什么?
这是我的/etc/apache2/sites-available/default档案:
<VirtualHost *:80>
ServerAdmin admin@abc.biz
DocumentRoot /var/www/abc.biz
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/abc.biz/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log …Run Code Online (Sandbox Code Playgroud)