html 滚动条
<html>
<head>
<mce:style type = "text/css"><!--
div
{
overflow-y:scroll;
height:200;
overflow-x:scroll;
width:200;
}
--></mce:style><style type = "text/css" mce_bogus="1"> div
{
overflow-y:scroll;
height:200;
overflow-x:scroll;
width:200;
}
</style>
</head>
<body>
<div>
<table border=1 width=300>
<mce:script type="text/javascript"><!--
for (var i = 0;i < 10 ;i++ )
{
document.write("<tr><td>");
document.write(i);
document.write("</td></tr>");
}
// --></mce:script>
</table>
</div>
</body>
</html>
需要写在div中
overlow-y: scroll;
原理:强制显示ie的垂直滚动条,而忽略水平滚动条
overflow-y: auto
原理:垂直滚动根据内容自适应
相关文档:
Frame框架现已不怎么常用,给个例子以展示其属性。
frame例子:
<frameset cols="50%,*">
<noframes>
<body>
Sorry,your explorer doesn't support the frame...
</body>
</noframes>
<frame name="left" src="left.html">
<frameset rows="*,30%">
<frame name=" ......
Public Function CHTMLEncode(ByVal fString As String) As String '=========数据库回车符和空格符转换=========
fString = Replace(fString, Chr(32), " ")
' fStr ......
I always consider the coolitm control only can use its control tag in its body.
But I found that it can use html tag ,this very good.
so I show the sample to other:
<ext:Window
ID="Window1"
runat="server"
Width="500"
Height="485"
......
1.wkhtmltopdf http://code.google.com/p/wkhtmltopdf/downloads/list
如linu下载wkhtmltopdf-0.9.6-static-i386.tar.bz2
2. tar -jxvf wkhtmltopdf-0.9.6-static-i386.tar.bz2
3。重命名 mv wkhtmltopdf-i386 wkhtmltopdf
4.测试生成pdf ./wkhtm ......
package com.jb.y2t034.thefifth.web.servlet;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import jav ......