CSS使用
来源:互联网 发布:快乐辣妈软件 编辑:程序博客网 时间:2024/06/08 03:44
//css样式的书写
//元素ID
#tb1{width:100%;height:80px;background-color:#FFD700;padding:4px;font-family:verdana,tahoma;font-weight:bold;}
#tb2{width:100%;padding:4px;font-family:verdana,tahoma;margin:12px 0px 0px 0px;background-color:#EEEEEE;font-weight:bold;}
//类
.test{cursor:hand;
border-right: white thin inset;
border-top: black thin inset;
border-left: black thin inset;
border-bottom: white thin inset;
}
.post1
{
cursor:move; background:red; color:Navy; border-right: black thin inset;
}
//元素
body
{
background-color:Gray:
}
//css样式的运用
<html>
<head runat="server">
<title>无标题页</title>
//引入css样式文件
<link type ="text/css" rel = "stylesheet" href = StyleSheet.css />
</head>
//样式元素的应用,元素名字相同自动套用
<body>
<form id="form1" runat="server">
<div>
//样式元素ID的应用
<table id = "tb1" border = 1; type = "font-size;13pt; align;center;">
<tr>
//自己使用css样式style=样式
<td style="width: 134px; height: 19px">dsfdf</td>
</tr>
</table>
</div>
<table id = "tb2" style="width: 168px">
<tr>
//样式类的应用
<td class = "post1">啊啊啊啊啊啊啊啊</td>
</tr>
</table>
</form>
</body>
</html>
- CSS使用
- 使用CSS
- CSS使用
- CSS使用
- CSS使用
- css使用
- CSS之使用css布局
- Flash 使用Css
- CSS使用详解
- 使用CSS强制换行
- CSS定义及使用
- 一小时熟练使用css
- css的使用技巧
- css使用编
- CSS的使用
- css使用小节
- Flex动态使用CSS
- CSS中使用expression
- INFORMIX的dbexport和dbimport使用示例说明
- permission denied. Command output: maildrop: maildir over quota.
- 在asp.net2.0中使用存储过程
- 建立Groovy开发环境
- 一半成功一半陷阱,如何判断新的工作机会?
- CSS使用
- 程序人最伤感的一句话
- 使用showModalDialog打开模态窗口添加数据后刷新原窗口
- TOMCAT6.0 + JAVABEAN+SERVLET
- Visual Basic .NET [复习二]
- Google Summer of Code 2008
- 人生需要激情?
- win 2k server的设置还原
- js技巧收集