Blog 板


LINE

我想把部落格版面置中 但container改成 margin 0 auto 版面却向上方及左边靠齐 google很久研究不出所以然 想请问需要改哪里才能将版面置中 附上CSS 非常感谢 /* 7277 : Tue, 03 Jun 2014 17:26:17 +0800 */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0; } table { border-collapse:collapse; border-spacing:0; } address,caption,cite,code,dfn,em,th,var { font-style:normal; font-weight:noral; } ol,ul { list-style:none; } caption,th { text-align:left; } h1,h2,h3,h4,h5,h6 { font-size:120%; font-weight:normal; } q:before,q:after { content:''; } pre { font-size:1em; } .article-content { _height:1%; overflow:hidden; _overflow:none; line-height:1; color:#808080; } .article-content p { margin-bottom:1em; } br { letter-spacing:normal; } img { vertical-align:middle; } body { background:#fff; position:relative; font-size:14px; color:#808080; line-height:180%; font-family:Microsoft JhengHei; background-image:url(none); background-color:#fff; background-position:undefined; } a { text-decoration:none; color:#666; } #authority { line-height:200px; padding-left:60px; } #authority a { background:#eee; display:inline; margin-right:5px; padding:2px 5px; } #container { margin:60px 150px; } #header { height:160px; position:relative; background-position:right; background-repeat:repeat; } #login-bar { font-size:12px; color:#747474; text-align:right; } #banner h1 { font-weight:bold; font-size:20px; margin-bottom:20px; } #banner h2,#banner #blog-category { font-size:12px; color:#666; } #navigation { margin-top:12px; } #navigation li { display:inline; float:left; } #navigation li a { border-right:1px dotted #333; color:#333; padding:0 5px; } #navigation li a:hover { color:#b33; } li#link-album a { padding-left:0; } #main { _height:1%; overflow:hidden; } #content { width:650px; float:left; display:inline; } #spotlight { border:1px #666; padding:5px; } #spotlight h5 { background:; color:#fff; display:inline; padding:2px 5px; } #spotlight-text { margin-top:5px; } .article { border-bottom:1px #ccc dotted; padding-bottom:20px; margin:50px 0; } .article-head { margin-bottom:10px; } .publish { background:#ffffff; line-height:10px; font-size:12px; display:inline; color:#666; padding:2px 5px; } .title { padding-top:10px; } .title a { font-size:18px; color:#db7093; font-weight:bold; } .article-footer { border:1px solid #ddd; margin-top:15px; overflow:hidden; padding:10px; } .main-list table { width:100%; margin-bottom:10px; } .main-list th { color:#000; font-weight:bold; padding:3px; } .user-post-box { position:relative; margin-bottom:10px; } .user-post-title { background:#eee; color:#696969; line-height:28px; height:28px; padding:2px 10px; } .single-post { border-bottom:1px dotted #ddd; position:relative; min-height:90px; _height:90px; color:#666; padding:5px; } .post-photo { position:absolute; right:10px; top:5px; } .post-photo img { width:50px; height:50px; border:2px #ddd solid; } #comment-box .post-text { width:80%; } .reply-text { border:#eee 1px solid; color:#333; margin:5px 0; padding:5px; } .single-post.secret { min-height:30px; } #trackback-box #trackback-url { position:absolute; right:5px; top:5px; } #trackback-box input { height:22px; } #trackback-box input#trackback-input { height:18px; width:350px; } #comment-form { margin-top:10px; } #comment-form table th { width:100px; text-align:left; vertical-align:top; } #comment-form input.radio { width:25px; } #comment-form input#send-comment { width:80px; height:20px; background:#ddd; -khtml-border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; border:none; } #comment-form textarea { width:100%; height:150px; } .page { margin-top:15px; text-align:right; } .page a { margin-left:10px; font-size:12px; } #links { width:300px; float:right; display:inline; } .box { margin-bottom:15px; } .box-title { background:#ffffff; color:#696969; border-bottom:1px dotted #666; margin-bottom:15px; padding:2px 5px; } #calendar table { width:80%; text-align:center; font-size:12px; margin:0 auto; } #calendar th { text-align:center; color:#000; font-weight:bold; } #calendar td { text-align:center; } #visitor li,#crumb li { float:left; margin:3px; } #visitor li img,#crumb li img { width:40px; height:40px; } #broadcast ul { height:45px; width:230px; overflow:hidden; margin:5px 0; } #broadcast li { line-height:20px; } #broadcast .broadcast-photo { float:left; margin-right:5px; } #search ul { height:30px; } #search li { float:left; margin-right:5px; display:inline; } #search input#search-submit { background:#ddd; height:18px; border:none; color:#666; padding:1px 6px; } #user-info dd { margin:0!important; } #footer { text-align:center; padding:30px 0; } #footer a { margin-right:5px; } #header h2 { color:#666; font-size:12pt; } fieldset,img,abbr,acronym { border:0; } a:hover,#banner h1 a,#blog-category a,.title a:hover,.post-info,.page a:hover,#calendar td b,#calendar td a:hover { color:#b00; } #banner h1 a:hover,#calendar th a { color:#000; } #banner .skiplink,.post-comment,#comment-form h4 { display:none; } .author,.author a,#comment-form p { text-align:right; } .history,.refer { width:48%; float:left; } .back-to-top,#visitor .box-more,#crumb .box-more { clear:both; } .main-list td,#comment-form table td { padding:3px; } #comment-form table,#comment-form input { width:100%; } .page SPAN,#calendar td a { background:#eee; color:#666; padding:1px 6px; } #visitor ul,#crumb ul,#search .box-text { overflow:hidden; } #header h1 a,#header h1 a:link,#header h1 a:visited,#header h1 a:hover,#header h1 a:active,#header h1 a,#header h1 a:link,#header h1 a:visited,#header h1 a:hover,#header h1 a:active { color:#008b8b; } .recommended-posts3 {display:none;} #content.recommeded-posts{display:none;} #links-row-1{margin-top:-0px} .fbbox{background: url("http://pic.pimg.tw/typixnet/1380235727-68474398.png") no-repeat scroll left center transparent !important;display:block;float:right;padding: 0 5px 0 46px;width:292px;height:270px;right:-297px;top:5%;z-index: 99999;position:fixed;} .fbbox div{border:none;position:relative;display:block;} .fbbox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position:absolute;right: 6px;text-align:right;z-index:99999;} .fbbox span a{color:#808080;text-decoration:none;} .fbbox span a:hover{text-decoration:underline;} .modal-footer{display: none;} .idle-adsense{display: none;} .idle-related-posts{display: none;} .modal-dialog{top: 50% !important; margin-top: -100px !important;} img{ max-width:100%; height:auto; } #container3{ margin: 10 auto; width:1000px } --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.176.4.116
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Blog/M.1432642437.A.6B0.html
1F:推 hit1205: 可能没有关联... 不过发现你的 #container3 这边 05/27 02:18
2F:→ hit1205: 写错了, 那个 10 应该要写成 10px 05/27 02:18
3F:推 tools241: Google搜 [痞客邦 PIXNET 面版样式(CSS) 设定] 05/27 20:34
4F:→ tools241: 搜 [随意窝 Xuite 面版样式(CSS) 设定] 05/27 20:34







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Boy-Girl站内搜寻

TOP