怎么在显示页面呈现类似新闻管理的界面啊?就是这个意思,我点击一个链接然后查看它的具体信息,首先消息标题居中,且字体较大,然后是消息发布的时间,然后是具体消息内容的详细介绍。这个要怎么写啊?

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    dl{
    display:inline;
    float:left;
    line-height:28px;
    margin-left:10px;
    width:485px;
    list-style:none;
    }
    dd{float:left;
    width:325px; text-indent:1em;}
    span .red{color:red;}
    a{text-decoration:none; color:#686879; font-size:14px;}
    a:hover{color:red} </style>
    </head><body>
    <div style="width:485px; font-size:14px; color:#686879;">
                                        <dl><dd><span class="red"><a title="" target="_blank" href="#">&bull;《11111111111111111报... </a></span></dd><dt>[06/25]</dt></dl>
                                        <dl><dd><span class="red"><a title="" target="_blank" href="#">&bull;《222222222222222222测报... </a></span></dd><dt>[06/25]</dt></dl>
                                        <dl><dd><span class="red"><a title="" target="_blank" href="#">&bull;《22222222222222222222测报... </a></span></dd><dt>[06/25]</dt></dl>
                                        <dl><dd><span class="red"><a title="" target="_blank" href="#">&bull;《333333333333333333评测报... </a></span></dd><dt>[06/25]</dt></dl>
                                        <dl><dd><span class="red"><a title="" target="_blank" href="#">&bull;《44444444444444444444评测报... </a></span></dd><dt>[06/25]</dt></dl>
                              </div>
    </body>
    </html>
      

  2.   

    <style>
    dl{
    display:inline;//行内样式
    float:left;//左浮动
    line-height:28px;//行高28px
    margin-left:10px;//左边距10px
    width:405px;//宽度405
    list-style:none;//dl默认样式设置成none
    }
    dd{float:left;//dd左浮动
    width:345px;//宽度345
    text-indent:1em;//缩进1em
    }
    span .red{color:red;//颜色红色}
    a{text-decoration:none;//取消a标签默认下划线
     color:#686879;//颜色 
     font-size:14px;//字号14px
     }
    a:hover{color:red//a标签鼠标经过颜色改变}</style>
      

  3.   

    <a title="" target="_blank" href="这里写你文章的链接地址">
      

  4.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    *{margin:0; padding:0;}
    h1{text-align:center;}
    p{ width:1002px; text-indent:2em; line-height:30px;}
    .time{text-align:center; width:1002px; text-indent:0em;}
    </style>
    </head><body>
    <div style="width:100%; min-width:1002px;">
         <div style="width:1002px; margin:10px auto;">
         <h1>标题标题标题</h1>
                <p class="time">作者:放宽为肌肤降温&nbsp;&nbsp;time:11111</p>
                <p>fwhfiowjheifjewfjkjfkwjf房价可谓激发科技  警方锁定看见反抗圣诞节反抗的书法家到时发送飞机迪斯科飞机迪斯科法艰苦的纠纷快速减肥开始懂了分的考虑是否爵士岛咖啡松岛枫似的飞溅的水反抗圣诞节福克斯的肌肤看到世界疯狂的事放假发警方锁定看见反抗圣诞节反抗的书法家到时发送飞机迪斯科飞机迪斯科法艰苦的纠纷快速减肥开始懂了分的考虑是否爵士岛咖啡松岛枫似的飞溅的水反抗圣诞节福克斯的肌肤看到世界疯狂的事放假发警方锁定看见反抗圣诞节反抗的书法家到时发送飞机迪斯科飞机迪斯科法艰苦的纠纷快速减肥开始懂了分的考虑是否爵士岛咖啡松岛枫似的飞溅的水反抗圣诞节福克斯的肌肤看到世界疯狂的事放假发警方锁定看见反抗圣诞节反抗的书法家到时发送飞机迪斯科飞机迪斯科法艰苦的纠纷快速减肥开始懂了分的考虑是否爵士岛咖啡松岛枫似的飞溅的水反抗圣诞节福克斯的肌肤看到世界疯狂的事放假发警方锁定看见反抗圣诞节反抗的书法家到时发送飞机迪斯科飞机迪斯科法艰苦的纠纷快速减肥开始懂了分的考虑是否爵士岛咖啡松岛枫似的飞溅的水反抗圣诞节福克斯的肌肤看到世界疯狂的事放假发警方锁定看见反抗圣诞节反抗的书法家到时发送飞机迪斯科飞机迪斯科法艰苦的纠纷快速减肥开始懂了分的考虑是否爵士岛咖啡松岛枫似的飞溅的水反抗圣诞节福克斯的肌肤看到世界疯狂的事放假发</p>
            </div>
        </div>
    </body>
    </html>
      

  5.   

    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld" %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>查看系统消息</title>
        
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <link href="view/style/style.css" type="text/css" rel="stylesheet">
    <link href="<%=path %>/view/style/common.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="<%=path %>/view/javascript/sysmessage.js"></script>
      </head>
      
      <body>
        <div id="nav">
       <div id="main">
    <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
    <div class="xboxcontent"> 
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr><td width="100%" style="font-size: 13px; font-weight: bold;" valign="middle">
    <img src="view/images/001.gif" border="0" style="margin:2px 2px 2px 10px;" align="middle">&nbsp;查看消息
    </td></tr>
    <tr>
    <td style="padding:5px;">
    <tr style="background-color: #F7FAFF;">
    <td class="tdd" align="center">
    <h1 align="center">${sf.msgTitle}</h1>
    </td>
    </tr>

    <tr style="background-color: #F7FAFF;">
    <td class="tdd" align="center">
    <h3 align="center">${sf.msgTime}</h3>
    </td>
    </tr>

    <tr style="background-color: #F7FAFF;">
    <td class="tdd">
    <h2 align="center">${sf.content}</h2>
    </td>
    </tr>
    <tr>
    <td colspan="4" height="40">
    <input type="button" onclick="window.location.href='view/sysConfig/sysMessageAction.do?method=modifySysMessage&act=update&mid=${message.mid}" value="修 改 记录" class="button">&nbsp;&nbsp;&nbsp;&nbsp; 
    <input type="button" onclick="javascript:history.back(-1);" value="返 回" class="button"/>
    </td>
    </tr>
    </table>
    </div>
    <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
    </div>
       </div>
      </body>
    </html>
    你帮我看看这段要怎么改就可以得到我说的那个效果了。
      

  6.   

    发布的问题都没人理我!哭了  在后台action我其享一个list 集合,集合里可能有N条记录,当我在页面显示的时候,怎么样给相应的字符串进行截取,并显示在页面上.
    比如名子的长度是20,而页面只能显示10,我要进行截取,并且显示出来,如何实现  help!!!!!