官方版本有BUG,代码太多了会造成页面错位.影响美观效果.下面那段代码可找的够累的.收集了……
把以下的样式代码添加到插件目录下的CSS文件.覆盖他就可解决页面错位问题了.
.wp_syntax {
color: #100;
background-color: #f9f9f9;
border: 1px solid silver;
margin: 0 0 1.5em 0;
overflow: auto;
}
/* IE FIX */
.wp_syntax {
overflow-x: auto;
overflow-y: hidden;
padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 15 : 0);
}
.wp_syntax table {
table-layout:fixed;
overflow:hidden;
text-overflow:ellipsis;
WORD-BREAK: break-all;
WORD-WRAP: break-word;
border-collapse: collapse;
}
.wp_syntax div, .wp_syntax td {
vertical-align: top;
padding: 2px 4px;
}
.wp_syntax .line_numbers {
text-align: right;
background-color: #def;
width:30px;
color: gray;
overflow: visible;
font-family: 'Lucida Grande',
'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif;
}
/* potential overrides for other styles */
.wp_syntax pre {
margin: 0;
width: fixed;
float: none;
clear: none;
WORD-BREAK: break-all;
WORD-WRAP: break-word;
overflow: visible;
font-size:8pt;
font-family: Courier New;
}
原文链接 :http://www.licream.net/wp-syntax.html
转载原创文章请注明来源: licream's blog
订阅本博:RSS订阅 ( Google Reader
/ 有道
/ QQ邮箱
/ 鲜果
/ 豆瓣
/ 抓虾 )
收藏&分享本文: