代码: 全选
.codebox?code?{
????overflow:?auto;
????display:?block;
????height:?auto;
????max-height:?200px;
????white-space:?normal;
????padding-top:?5px;
????font:?1.1em?Consolas,?Monaco,?"Andale?Mono","Courier?New",?Courier,?mono;
????line-height:?1.3em;
????margin:?2px?0;
}
在代码长度超过代码框范围的时候显示滚动条,效果图