62,041
社区成员
发帖
与我相关
我的任务
分享
<table cellpadding="0" cellspacing="0" class="style8">
<link rel="stylesheet" href="App_Themes/css/StyleSheet.css" />
body
{
}
a:link{color:blue;text-decoration:none}
a:visited{color:green;text-decoration:none}
a:hover{color:red;text-decoration:underline overline;font-size:12pt}
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="南無阿弥陀佛!南無观世音菩萨!南無大势至菩萨!南無释迦牟尼佛!南無地藏王菩萨!南無普贤菩萨!" %>
<style type="text/css">
.style8
{
width: 100%;
}
.style9
{
font-size: small;
color: #0000ff;
}
.style10
{
color: #0000ff;
font-size: small;
}
.style11
{
width: 25%;
background: #009900;
}
.style12
{
text-align: left;
font-size: small;
width: 50%;
}
.style13
{
text-align: left;
font-size: small;
}
.style14
{
font-size: small;
text-align: left;
width: 80%;
}
.style15
{
width: 35%;
text-align: left;
font-size: small;
}
.style16
{
width: 65%;
text-align: left;
font-size: small;
}
.style17
{
width: 20%;
font-size: small;
color: #FF0000;
}
.style18
{
width: 20%;
font-size: small;
color: #0000ff;
}
.style19
{
width: 20%;
background: #009900;
}
</style>
不好意思,上面的错了。
写在前台页面中:<style type="text/css"></style>
JAVA没用过,不知道有什么不同。。
在Head部分写
如果是引用css文件:<link href="url" type="text/css" rel="stylesheet">
如果写在前台页面中:<type="text/css"></type>