為什么改了b0ttom 為50是距離上面???改了left 不是距離左邊嗎?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>relative樣式</title>
<style type="text/css">
#div1{
? ? width:200px;
? ? height:200px;
border:2px red solid;
position:fixed;
bottom:50;
right:20;
2017-07-10
不是啊,你的代碼寫出來就是圖片距離下方50,距離右邊20 呀,如果你改為left:20;的話,你可以運(yùn)行下跟left:0;比較一下,他還是往右邊走的(距離左邊20)