网站开发

<%@ page language="java" contentType="text/html; charset=GB18030"
 pageEncoding="GB18030"%>

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jstl/fmt" %>    jstl  输出格式化日期

 

 

<meta http-equiv="pragma" content="no-cache">
     <meta http-equiv="cache-control" content="no-cache">
     <meta http-equiv="expires" content="0">   
     <META http-equiv=Content-Style-Type content=text/css>
  <META http-equiv=Content-Script-Type content=text/javascript>
  <META http-equiv=Content-Language content=zh_cn>
  <META
  content="Starcraft 2 Trilogy (starcraft2trilogy.appspot.com)" name=author>
  <META content="Starcraft 2 Trilogy (starcraft2trilogy.appspot.com), 2009" name=copyright>
  <META
  content="Starcraft 2 Trilogy - News, Articles, Units, Buildings, Races, Features, Gameplay, Videos, Artwork, Screenshots, Strategies and Tournaments. An Unofficial Fansite and Community - Largest unit, building and gameplay database around!"
  name=description>
  <META
  content="starcraft, trilogy fansite, community, forums, information, news, contests, discussion, terran, protoss, zerg, starcraft 2, blizzard, entertainment, battle.net"
  name=keywords>
  <META content=follow name=robots>

 

 

 

<c:forEach items="${posts}" var="post">
                        <div class="post">
                            <h1>
                                <c:out value="${post.title}"/>
                         </h1>
                         <div class="post_body">
                             <p>
                                 <c:out value="${post.content.value}" escapeXml="false"/>//输出中有html
                             </p>
                         </div>
                         <div class="postedby">
                             Posted by: <c:out value="${post.poster}"/>
                         </div>
                         <div class="timestamp">
                         <fmt:formatDate  value="${post.date}" type="both" pattern="yyyy.MM.dd HH:mm:ss" />
                         </div>
                    </div>
                  </c:forEach>

 

 

a#Zerg {
background:transparent url(../images/Zerg.gif) no-repeat scroll 0 0;
height:30px;
display:block;
padding-left:25px;
padding:10px 10px 10px 50px;
margin:0px 5px;
font-size:20px;
text-decoration:none;
line-height:125%;
width:90px;
color:#4A9BB3;
font-family:"Tahoma","Arial",sans-serif;
font-size-adjust:none;
font-style:normal;
font-variant:normal;
font-weight:normal;
text-decoration:none;
}

通过 a#id可以在通用标签中指定特殊展示

 

css继承  覆盖

你可能感兴趣的:(C++,c,css,cache,C#)