没有太明白你的用意,只能说说自动换行:可将文本置于<table width="100%" style="word-break:break-all"></table>试试,如果是IE5.5+,可使用word-wrap:break-word效果更好

解决方案 »

  1.   

    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <TITLE></TITLE>
    </HEAD>
    <BODY><div id=cc>
    </div>
    <input type=button onclick=ff() value=next><input type=button onclick=bb() value=privous>
    </BODY>
    </HTML>
    <script>
    var str="1234567890",str_=new Array(),m=2//m为每页字符数
    var n=parseInt(str.length)/parseInt(m)
    str_[0]=str.substring(0,m)
    for(var i=1;i<n-1;i++)
    {
    var x=m*i,y=m*i+m
    str_[str_.length]=str.substring(x,y)
    }
    str_[str_.length]=str.substring(str.length-m,str.length)
    alert(str_)
    cc.innerText=str_[0]
    var page=0
    function ff()
    {
    if(page<str_.length-1)
    {
    page++
    cc.innerText=str_[page]

    }
    else
    {
    alert("end")
    return false
    }

    }
    function bb()
    {
    if(page>0)
    {
    page--
    cc.innerText=str_[page]

    }
    else
    {
    alert("head")
    return false }

    }
    </script>
      

  2.   


    如何在一个页面上实现如下效果,将一段长的文本段进行自动分页,左右箭头表示进行上下翻页(可以使用链接) |———————————|
     |<<..大大dsafsdfdsdfasd| 
     |阿大大dsafsdfdsdfasdff|
     |阿大大dsafsdfdsdfasdff| 
     |阿大大dsafsdfdsdf ..>>| 
     |———————————|
      

  3.   

    参考一下我的这个将从数据库读出的数据分页的代码吧:
    <%
    '分页显示题目
    dim problem_type,strChoices,abcd(3),choices(3)
    dim i,j,k
    problem_type=request.form("type")
    if problem_type="" then response.end
    abcd(0)="A"
    abcd(1)="B"
    abcd(2)="C"
    abcd(3)="D"
    sql="select * from t_question where type='" & problem_type & "'"
    rs=con.execute(sql)
    dim pages,pagenum,capacity,recordnum,start
    capacity=20
    recordnum=rs.fields.count
    pages=cint(recordnum/capacity)
    if pages*capacity<recordnum then pages=pages+1
    if request.querystring("pagenum")="" then
    response.write "请选择当前页码。"
    response.end
    else
    pagenum=cint(request.querystring("pagenum"))
    end if
    strChoices=rs("choice")
    choices=split(strChoices,";")
    start=(pagenum-1)*capacity
    if not pagenum=pages then
    for i=start+1 to start+capacity
    response.write "enter the table content here"
    next
    else if pagenum=pages then
    for i=start+1 to recordnum
    response.write "enter the table content here"
    next
    else 
    response.write "该页不存在,请确定页码正确。"
    response.end
    end if
    for i=1 to pages
    if i=pagenum then
    response.write "<right>" & cstr(i) & "</right>"
    else
    response.write "<right><a href='choose.asp?pagenum=" & cstr(i) & "</a></right>"
    end if
    next
    %>
      

  4.   

    div前后加上连接不就行了?把input该了不就行了?
    如果你想作刷新页面的形式,就用asp
      

  5.   

    这是一个JSP的应用,要求的功能是将一段较长的文字分成几页(固定大小),文字的最前加上链接,点这个链接向前翻;文字的最后加上链接,点这个链接往后翻,不能用到页面提交
      

  6.   

    这是一个JSP的应用,要求的功能是将一段较长的文字分成几页(固定大小),文字的最前加上链接,点这个链接向前翻;文字的最后加上链接,点这个链接往后翻,不能用到页面提交