2020-12-01

 在<title><title/>下写style可以改body中的所有同名标签属性,

	<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			p{
				border: 1px solid blue;
				width: 100px;
				height: 50px;
				/*line-height: 50px;
				font-size: 10px;
				font-family: 华文彩云;*/
				font: 12px/50px 华文彩云;
				
			}
		</style>
	</head>
	<body>
		<p>hello</p>
		<div style="border-bottom: 1px solid blueviolet;">aa</div>
		<span>a</span>
		<span>a</span>
		<br /><br />
		<div id="d" style="border: 1px;">
			<span class="s">B</span>
			<span class="s"></span>
			<!--<div style="clear: left;"></div>-->
		</div>
	</body>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			ul{
				/*list-style-type:decimal
				 list-style-img:url(img)
				 list-style-position:inside*/
				/*list-style:decimal url(img) inside*/
				list-style: none;
				}
				li{
					border-bottom: 1px solid #e1e3e5;
					height: 49px;
					font: 16px/49px #e1e3e5 ,"Microsoft Yahei";
			}
			#last{
				border:none;
				color="#e1e3e5"
			}
			a{
				text-decoration: none;
				color: #e1e3e5;
			}
			#first{
				color: blue;
				
			}
		</style>
	</head>
	<body>
		<ul>
			<li><a id="first" href="http://www.baidu.com">首页</a></li>
			<li><a href="http://www.baidu.com">公司概况</a></li>
			<li><a href="http://www.baidu.com">股票咨询</a></li>
			<li><a href="http://www.baidu.com">新浪动态</a></li>
			<li><a href="http://www.baidu.com">财务信息</a></li>
			<li><a href="http://www.baidu.com">投资者日</a></li>
			<li id="last"><a href="http://www.baidu.com">联系我们</a></li>
		</ul>
	</body>
</html>

学习感悟:学习的内容越来越复杂啦,感觉有点难理解特别是标签属性那里。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值