css 样式收集

缩放:
	zoom:normal|浮点数来进行控制|百分数

网页标题引入图片
	要先把图片变成.ico格式
		<link href="路径" rel="shortcut icon"/>
			
鼠标样式:
	cursor:pointer;   变成小手

代码示例:

<html>
	<head>
		<title>css 样式的使用</title>
		<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
		
		<style type="text/css">
			body{
				background-image:url(img/1.jfif);  /*设置网页背景图*/
				background-repeat:no-repeat;  /*设置图片不重复*/
				background-size:cover;		/*设置图片平铺整个网页*/
				
			}
			table{
				border:solid 1px;
				border-radius:10px;
				background-image:url(img/1.jfif);
				background-size:cover;
			}
			tr{
				height:40px;
			}
			td{
				width:100px;
				border:solid 1px yellow; /*边框实线大小和颜色*/
				border-radius:10px;    /*边框角度*/
				background-color:orange; /*背景颜色*/
				text-align:center;		/*内容位置*/
				color:aqua;    /*字体内容颜色*/
				font-weight:bold;   /*字体权重*/
				letter-spacing:10px;   /*字符间距*/
				
			}
			/*菜单的设置*/
			li{
				list-style-type:none;
				/*display:inline;*/
				float:left;
			}
			/*子标签设置*/
			li a{
				color:wheat;
				text-decoration:none;    /*去除下划线*/
				font-weight:bold;
				font-size:30px;
				margin-left:20px;	/*盒子模型,词语间距*/
				position:relative;
				top:5px;
			}
			/*ul设置*/
			ul{
				background-color:gray;
				height: 50px;
			}
		</style>
	</head>
	<body>
		<h3 align="center">css 样式的使用</h3>
		<hr size="30" color="aquamarine"/>
		<table>
			<tr >
				<td width="100px">姓名</td>
				<td >性别</td>
				<td>爱好</td>
			</tr>
			<tr>
				<td>张三</td>
				<td>男</td>
				<td>唱歌</td>
			</tr>
			<tr>
				<td>李四</td>
				<td>男</td>
				<td>跳舞</td>
			</tr>		
		</table>
	<hr size="30" color="aquamarine"/>
	
	<ul>
		<li><a href="">首页:</a></li>
		<li><a href="">钢铁侠</a></li>
		<li><a href="">美国队长</a></li>
		<li><a href="">蜘蛛侠</a></li>
	</ul>
	
	</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值