Wishlist 0 ¥0.00

JiaThis工具条居中显示

今天加入了Jiathis工具,应该叫插件,他们做的挺用心的,有好多种样式,我最喜欢他的大按钮风格,于是到他的网站改出了一个样式。他们有wordpress网站的插件,你可以直接用,但按钮型的Jiathis默认是靠左的,而且是在文章的上方,很不好看,于是改了一下。
首先,你需要先将jiathis自己的插件停掉,然后把Jiathis给你的修改好的代码,放在你themes里的single.php页面里,或放在loop-single.php里,视情况而定。如果你想放在文章末尾,一般是将jiathis的代码放在
之后。保存以后,你可以看看效果,怎么样,在文章末尾了吧,但是很不爽的是,一,他的对其方式就只有居左;二,与上下其他的文字图片之间距离太小。这个问题解决方案是,在jiathis的代码前后加上,在Div里加入style,style的内容是“height:xxxpx;width:xxpx;margin:
0pt auto; ”,这里面,设置height高度,这样就和上下文章有了一定的间距,设置width宽度,再设“margin: 0pt
auto;”,就可以使jiathis居中了,这里的width不是page的宽度,而是jiathis工具条的宽度。非常简单吧?

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.