30
2019
05

CSS display元素类型转换

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
<style type="text/css">    
p{    
	border: 3px solid orange;    
	width: 100px;    
	/*转成行级元素*/    
	display: inline;    
}    
a{    
	width: 100px;    
	height: 100px;    
	border: 3px solid orange;    
	display: block;    
	text-decoration: none;    
	color: blue;    
}    
</style>    
</head>    
<body>    
<p>班组里还有</p>    
<p>跑了40多公里</p>    
<p>大年初一</p>    
<br /><br />    
<a href="">一天下来跑了40多公里</a>    
<a href="">忙的时候就要跑三趟</a>    
<a href="">算起来有60公里路</a>    
<a href="">一种至高的肯定和鞭策</a>    
</body>    
</html>

原文链接:https://www.qiquanji.com/post/7474.html

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

微信扫码关注

更新实时通知

« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。