作者cain1120 (我累了)
看板Blog
标题[问题] Blogger内文文字排列…
时间Sat Nov 3 14:24:59 2007
我希望能够让文字可以空两格
像
今天xxxxxxxxx
昨天xxxxxxxxxxx
而不是
今天xxxxxxx
昨天xxxxxx
虽然不是很会使用,但也并非对css完全不懂,
参考了oec space以後,
原本想说可能是有设定文字向左靠齐,可是都找不到阿>"<
应该是在这里的某个地方改吧…
(另外我想设定文字行高…line height改了好多遍都没用)
/* Posts
-----------------------------------------------
*/
h2.date-header {
margin:1.5em 0 .5em;
}
.post {
margin:.5em 0 1.5em;
border-bottom:1px dotted $bordercolor;
padding-bottom:1.5em;
}
.post h3 {
margin:.25em 0 0;
padding:0 0 4px;
font-size:140%;
font-weight:normal;
line-height:1.4em;
color:$titlecolor;
}
.post h3 a, .post h3 a:visited, .post h3 strong {
display:block;
text-decoration:none;
color:$titlecolor;
font-weight:normal;
}
.post h3 strong, .post h3 a:hover {
color:$textcolor;
}
.post p {
margin:0 0 .75em;
line-height:1.6em;
}
那个「设定」里头的浮动对齐也选择「否」(虽然不知道有没有关系= =)
不知道有没有人可以解答呢?感谢>_<
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.228.62
1F:→ PHP:第一个问题 试试看用「缩排」语法:text-indent: 10px; 11/03 14:56
2F:→ PHP:行高的问题 如果把 line-height:1.5em; 放在post里呢 11/03 14:57
3F:推 a892245:编辑的时候空两个全形空白 应该就可以了吧 11/03 16:07
P大的第一个方法跟我的需求不太合^^"因为我是从WORD贴过去
再慢慢整理的,所以每篇文第一行缩10px跟我想的不太一样
行高我贴上去,不过好像没效…我再慢慢试试
a大提供的方法有用,空全形的就可以了,真神秘阿XD
感谢两位大大回答喔^^
※ 编辑: cain1120 来自: 140.112.228.62 (11/03 16:31)