Ccs 瀑布流語法求助 - 部落格

Isabella avatar
By Isabella
at 2017-06-05T23:22

Table of Contents

這幾天為了紀錄生活開始經營部落格,選定了某瀑布流樣板來套用,很喜歡這種圖片整合的方式,不夠他的閱覽順序是上至下再左到右:
1 4
2 5
3 6

我希望可以改成先左至右,再上至下
1 2
3 4
5 6
研究了好幾天語法都失敗,能幫幫我嗎?目前語法:/* ---------------------------------------------------------------瀑布流--------------------------------
#calendar .cal-forward a,
#calendar .cal-backward a {
color: #1db954; }

#calendar table {
width: 100%;
height: 180px; }

#calendar th,
#calendar td {
text-align: center;
padding: 1px; }

#calendar td a {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
border-radius: 5px;
background: #1db954;
color: #ffffff;
display: block; }

/* ---------------------------------------------------------------footer---------------------------------------------------------------*/
#footer #bottom:before {
display: block;
margin: 39px auto;
color: #1db954;
content: "Copyright c CSS designed by BlueHorace"; }

font-size: 13
/* --------------------------------------------------------------- 首頁瀑布流---------------------------------------------------------------*/
#blog-main .article-body {
color: #666;
font-size: 14px;
letter-spacing: 2px; }
#blog-main .article-content-inner p:first-child img {
max-width: 400px;
margin-top: -94px;
height: auto; }
@-moz-document url-prefix() {
@-moz-document url-prefix() {
#blog-main .article-content-inner p:first-child img {
margin-top: -95px; } }
#blog-main .article-content-inner img {
max-width: 400px;
margin-left: -20px;
height: auto; }
#blog-main .article {
background: #fff;
width: 400px;
display: inline-block;
box-sizing: border-box;
margin: 0px 0px 30px 0;
line-height: 1.5em;
letter-spacing: 1pt;
-moz-box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 4px;
-webkit-box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 4px;
box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 4px; }
#blog-main .article-content p {
padding: 0 20px; }

#article-main #trackback-url {
text-align: center;
text-align: center;
margin: 22px 0 10px 0; }
#article-main #trackback-input {
width: 580px;
margin: 0 5px 0 0; }
#article-main .article-body {
font-size: 15px;
color: #333; }
#article-main .recommended-posts3 {
margin: 20px 20px !important; }
#article-main .recommended-posts3 a {
color: #1db954;
border-left: none !important; }
#article-main .recommended-posts3 h5 {
font-size: 15px !important;
font-weight: 900 !important;
color: #333 !important;
opacity: 1 !important; }
#article-main .author {
margin: 0px 20px 20px 0px;
text-align: right; }
#article-main #comment-area {
width: 100% !important;
width: 100% !important;
background: none !important;
border: none !important; }
#article-main #comment-area-2 {
width: 100% !important;
background: none !important;
border: none !important; }
#article-main .comment-identity.identity-logout {
background: none !important; }
#article-main .comment-body {
border: none !important; }
#article-main .comment-identity.identity-logout {
border: none !important; }
#article-main .comment-identity.identity-login {
background: none !important;
border: none !important; }
#article-main #container #main #content #user-post #comment-box .comment-body p {
margin: 0 0 8px 0;
line-height: 18px;
border-bottom: 1px dashed #ccc !important;
border-top: 1px dashed #ccc !important;
padding: 10px 0 10px 0 !important;
text-align: center; }
text-align: center; }
#article-main #container #main #content #user-post #comment-box input.comment-name {
background: #fff !important;
width: 93% !important;
line-height: 28px !important;
height: auto;
padding: 0px 10px !important; }
#article-main .comment-textarea {
width: 100% !important; }

@media screen and (min-width: 2140px) {
#blog-main #container3 {
width: 2120px; }
#blog-main #content {
-moz-column-count: 5;
-webkit-column-count: 5;
column-count: 5;
-moz-column-gap: 30px;
-webkit-column-gap: 30px;
column-gap: 30px; } }
@media screen and (min-width: 1720px) and (max-width: 2139px) {
#blog-main #container3 {
width: 1700px; }
width: 1700px; }
#blog-main #content {
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
-moz-column-gap: 30px;
-webkit-column-gap: 30px;
column-gap: 30px; } }
@media screen and (min-width: 1300px) and (max-width: 1700px) {
#blog-main #container3 {
width: 1280px; }
#blog-main #content {
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
-moz-column-gap: 30px;
-webkit-column-gap: 30px;
column-gap: 30px; } }
@media screen and (min-width: 860px) and (max-width: 1299px) {
#blog-main #container3 {
width: 840px; }
#blog-main #content {
-moz-column-count: 2;
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
-moz-column-gap: 30px;
-webkit-column-gap: 30px;
column-gap: 30px; } }
@media screen and (max-width: 859px) {
#blog-main .article {
overflow: hidden; }
#article-main .article {
overflow: hidden; }
#navigation {
width: 272px; }
#navigation li {
margin: 0px 5px 0px 0px; }
#topbar {
display: none; }
.topbar-placeholder {
.topbar-placeholder {
display: none; }
#footer #bottom:before {
margin: 15px auto; }
#blog-category {
top: 210px; }
#blog-main #container3 {
width: 100%; }
#blog-main .article {
width: 100%;
max-width: 400px;
margin: 0 auto 30px auto;
display: block; }
#blog-main #links {
display: none; }
#blog-main .more {
width: 100%; }
#article-main #comment-box .single-post {
width: 77%; }
width: 77%; }
#article-main .comment-identity {
display: none !important; }
#article-main #comment-area-2 > iframe {
display: none; }
#article-main #trackback-input {
width: 85%; }
#article-main .comment-textarea > textarea {
width: 94% !important; }
#article-main #links {
display: none; }
#article-main #d_clip_button {
margin-top: 15px; }
#article-main .article-content-inner img {
max-width: 100% !important;
height: auto !important; } }
@media screen and (max-width: 1300px) {
#article-main #container3 {
width: 100%; }
#article-main #content {
padding: 10px; } }
.article-keyword {
margin-left: 17px; }
margin-left: 17px; }
.article-keyword a {
color: #1db954; }
.article-keyword img {
margin-top: 0px !important;
margin-left: 0px !important; }

#article-main .article-head {
background: none;
padding: 50px 0px; }
#article-main .publish {
text-shadow: none;
color: #333;
text-align: center; }
#article-main .title h2 a {
color: #000;
text-shadow: none;
font-size: 36px;
text-align: center;
line-height: 36px; }
#article-main .title h2 {
text-align: center;
overflow: hidden;
overflow: hidden;
white-space: normal;
text-overflow: ellipsis; }
#article-main .author-profile {
padding: 0 20px; }
body { background-color: #e6e6e6; }
body { background-image: none; }
#links { background-color: #ffffff; }
#header { background-image: url(https://pic.pimg.tw/ck4xup6home/1496478748-1299486262_l.jpg);; }
#header { background-position: top; }
#header { background-repeat: no-repeat; }
.publish { color: #ffffff; }

--

All Comments

Isla avatar
By Isla
at 2017-06-08T19:05
Google搜[痞客邦 PIXNET 面版樣式(CSS) 設定]
Google搜[隨意窩 Xuite 面版樣式(CSS) 設定]

css憑空消失

Steve avatar
By Steve
at 2017-06-02T22:21
http://imgur.com/a/vlx4m 今天想再微調css發現它整個不見變成空白的了, 但自己做的樣式都還在, 還好好的套用在我自己的blogger裡... 可是為什麼它會就這樣憑空消失了 所有的語法都是自己慢慢摸索才改到現在喜歡的樣子, 就這樣突然變成一片空白,超崩潰的 我該怎麼找回我原本的 ...

改版後還有RSS訂閱嗎?

Ivy avatar
By Ivy
at 2017-06-02T00:28
天空部落好像近期改版了 我是訪客 所以對於設定不太了解 我都找不到新版面的RSS按鈕 舊的網址也失聯了 該不會不開放了吧? - ...

網站在google的索引裡面消失了

Michael avatar
By Michael
at 2017-05-31T16:45
我有一個用squarespace建的網站 以前google我自己的名字 個人網站排名都蠻前面的 都是前三順位 後來不知道為什麼在google索引裡面完全消失了 不是排名很後面的問題 是and#34;完全and#34;消失了 但是去bing yahoo msn去搜尋自己的名字 排名還是在很前面 只有 ...

無法成功轉網址

Aaliyah avatar
By Aaliyah
at 2017-05-30T12:56
如題,我在pchome買了網址,照著步驟輸入了兩組CNAME以及四組A 照理說最慢兩天後一定會轉成功 但現在依然是失敗的,實在不知道哪個步驟有錯誤... 跪求大大指點 - ...

OpenLiveWriter 0.6 臺灣中文可攜版 發佈

Linda avatar
By Linda
at 2017-05-02T23:26
我想請問open live writer 圖片問題 在前文有人也提到 用OLW編輯完後 (pixnet為例) 上傳,照片會全部在同一相簿(個人所測試結果--相片都到「系統相簿」去了) 我自己是想把照片都送去同一相簿 就是再create新相簿,搬相片 經測試,似乎目前沒有破圖 所以想請問 這樣的處理照片法好 ...