📄 newsselect.jsp
字号:
<%@ page language="java" import="java.util.*,com.accpedu.LHcompany.dao.*,com.accpedu.LHcompany.entity.*" pageEncoding="gbk"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/css.css">
<style type="text/css">
#Layer2 {
position:absolute;
width:200px;
height:220px;
left:30px;
top:220;
z-index:1;
}
#Layer3 {
position:absolute;
width:200px;
height:115px;
left:0px;
top:0px;
z-index:1;
}
#Layer4 {
position:absolute;
width:200px;
height:115px;
left:200px;
top:15px;
z-index:1;
border-left:solid;
border-left-width:2px;
border-left-color:#CCFFFF;
}
.STYLE2 {
font-size: 12px;
color: red;
}
-->
</style>
</head>
<body>
<%
newsDao nd=new newsDao();
int id=Integer.parseInt(request.getParameter("id"));
System.out.println(id);
if(id==65560)
{
out.print("<script>alert('无此商品');location.go(-1);</script>");
}
%>
<%@ include file="top.jsp" %>
<div id="Layer2">
<span class="STYLE2">首页>商品展示>详细信息</span><br>
<div id="Layer3">
<%@ include file="left.jsp" %>
</div>
<div id="Layer4" >
<%
news n=nd.selectID(id);
%>
<table border=0 width=500>
<tr>
<td align=center><%=n.getTitle() %><br><br></td>
</tr>
<tr>
<td><p class="bg"> <%=n.getContent() %><br><br><br><br></p></td>
</tr>
<tr>
<td align="right"><img src="image/n10.jpg"></td>
</tr>
<tr>
<td align="right"><font class="zc"><%=n.getWriterDate() %></font></td>
</tr>
</table>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -