也许是自己从小的习惯,写文章报告之类的都喜欢段首空两个汉字。这样可以清晰的定位一个段落的开始,对文章的总体脉络把握有好处。近来常上网看博客,不知道是不是因为拥有独立博客的人都不太重视中文排版习惯,还是因为没有注意到WordPress博客的这个不算BUG的问题。那就是在有些浏览器下,在可视化模式下编辑首行缩进无效。很多博客上都有这个现象,即使有些博客排版很不错,但是还是没有首行缩进。
我本身用的firefox上就出现这样的情况。Wordpress可视化模式编辑下无法实现中文排版习惯的首行缩进功能,但是在IE下却能够实现这种功能。有独立博客的朋友们,有很多都是火狐浏览器的长期使用者,如果不想通过IE发布标准排版的文章那该怎么办呢,自己上网查了点资料,我觉得有必要知道这点小技巧。
第一个方法就是自己修改主题文件style.CSS的代码,让首行实现缩进字符。具体做法是:在WordPress的后台编辑中打开style.css样式表,找到如下的代 码:
.post .content p {
margin:0 0 10px 0;
}
修改为:
.post .content p {
margin:0 0 10px 0;
text-indent: 2em;
}
但是在有的主题stye.css样式表中找不到如上的代码,那么我们就可以自己手动的添加一段代码上去,如下:
p {
margin: 0.7em 0;
text-indent:2em;
line-height:1.8em;
}
以上的两个代码中起作用的都是text-indent:2em;
首行缩进的相关CSS说明:
1.text-indent:定义块级元素的首行文本的的缩进CSS样式
2.em会继承父级元素字体的大小,2em就是指两个字体的大小。
第二种方法是在FireFox中编辑的时候,选择代码模式下调整。将输入法切换为全角,按两下空格键,然后再代码模式下直接保存。在可视化模式下全角缩进是不能实现首行缩进的。
第三种方法就是在类似于Windows Live Writer这样的本地电脑编辑器中发布博 客。在WLW中发布,要实现首行缩进需要在“日志”菜单中点击“编辑日志设置”,然后选择“高级”,将“标记类型”改为“HTML”,并且保存。这种方法我没有试过,有兴趣的可以去试试。
以上几种方法相信应该可以解决这个问题了,如果觉得麻烦的话大家还是可以用IE来发布我们的wordpress日志的。希望能帮到大家,祝大家生活愉快。
I was also reading a topic like this one from another site.,`~`*
My friend first found your blog on Google and she referred your blog to me.*.~:-
Very well said, your blog says it all about that particular topic.–*;”
Man that was very entertaining and at the same time informative..:-,.
I would really like you to become a guest poster on my blog.’-'”~
I always visit new blog everyday and i found your blog.-”’”
Very well said, your blog says it all about that particular topic.-:”.`
Last month, when i visited your blog i got an error on the mysql server of yours.~-~.”
I love reading your blog because it has very interesting topics.~~;”.
Great blog post and nice discussion among the comments.”`;`’
I was also reading a topic like this one from another site.~-*`~
Wow, you seem to be very knowledgable about this kind of topics.”:*,’
I love to visit your web-blog, the themes are nice.“:”:
I think your blog is getting more and more visitors..~’.-
Have you tried twitterfeed on your blog, i think it would be cool.`~-”.
Judging by the way you write, you seem like a professional writer..;::-
RSS Feeds on your blog sometimes does not work.,;.`”
You can also put a chatbox on your blog for more interactivity among readers.:~’,`
Very well said, your blog says it all about that particular topic..**”~
I just love to read new topics from you blog.~:’”,
Perhaps you should update the php server on your webhost, Wordpress is kinda slow…:,`
I love reading your blog because it has very interesting topics.*~`’;
You can increase your blog visitors by having a fan page on facebook.,*’,,
I was also reading a topic like this one from another site..,-~`
The way you write, you are really a professional blogger.*”‘:`
Haha. I woke up down today. Youve cheeerd me up!
Hey, sublte must be your middle name. Great post!
Thnkas for the insight. It brings light into the dark!
Superior thinking demonstrated above. Thnkas!
Wow, thats a rellay clever way of thinking about it!
Yes there should realize the reader to RSS my feed to RSS commentary, quite simply
Good morning! I was surfing arround on Bing and found this blog. I like the articles! I also have a blog . Maybe you will visit my website too.
I’ve read numerous good stuff here. Undoubtedly worth bookmarking for revisiting. I wonder how considerably effort you put to produce such a great informative webpage.
Great job here. I genuinely enjoyed what you had to say. Maintain going since you undoubtedly bring a brand new voice to this topic. Not several individuals would say what youve said and still make it interesting. Appropriately, at least Im interested. Cant wait to see further of this from you.
This specific topic you shows on this research is really a top-notch and also attractive matter. Engaging approach along with style in composition. Keep posting this sort of useful news.