<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<!--display: none; 让标签消失-->
<!--块级标签转行内display: inline;-->
<!--<div style="background-color: red; display: inline;">test</div>-->
<!--行内标签转块级display: block;-->
<!--<span style="background-color: red; display: block;">test</span>-->
<!--display: inline-block;-->
<!--具有inline的属性,默认自己有多少占多少-->
<!--具有block的属性,可以设置高度、宽度、padding、margin-->
<span style="display: inline-block;background-color: red;height: 50px;width:70px;">test</span>
<a style="background-color: red;">test2</a>
</body>
</html>
Python学习记录W14-23:css之display样式
猜你喜欢
转载自blog.csdn.net/up1292/article/details/82052183
今日推荐
周排行