[問題] moodle版面CSS 置中問題

看板Web_Design作者 (巧克力棒棒棉花糖)時間15年前 (2010/08/27 01:40), 編輯推噓2(205)
留言7則, 4人參與, 最新討論串1/1
http://140.119.106.50/moodletheme01/ 這問題苦惱我已久=\\\\= 怎麼樣都無法讓它置中呀!! 上面那個網址,所看到的首頁是置中的 但是下面這個登入畫面,以及登入後所有的功能 點選進入後 都會呈現黏在左邊的窘境..... http://140.119.106.50/moodletheme01/login/index.php 主要使用的CSS是這兩個: https://sites.google.com/site/testtttttt123/css/styles.css https://sites.google.com/site/testtttttt123/css/styles_select.css 第一次改moodle的theme... 到目前為止已經眼花撩亂了,還請各位先輩不吝指教!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.184.113.69

08/27 02:47, , 1F
我是置中耶(by Chrome)
08/27 02:47, 1F

08/27 07:47, , 2F
把#page的css從margin:5px 7px改成 margin:5px auto;
08/27 07:47, 2F

08/27 11:41, , 3F
感謝樓上=\\\= 太神了!!!!!!
08/27 11:41, 3F

08/27 17:27, , 4F
我記得IE進入Quriks模式好像不能用margin:auto;
08/27 17:27, 4F

08/27 17:29, , 5F
其實可以透過pos改成absolute 在設定left 不過這樣的作法
08/27 17:29, 5F

08/27 17:29, , 6F
要JS配合就是了 囧~
08/27 17:29, 6F

08/27 17:29, , 7F
position
08/27 17:29, 7F
文章代碼(AID): #1CTgSa1c (Web_Design)