" />

设定span宽度高宽比的方式

2020-10-21 08:34 jianzhan

span宽度高宽比设定


拷贝编码
编码以下:

<!DOCTYPE html>
<html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf⑻" />
<title>
span宽度高宽比设定
</title>
<style>
.inner_span{
width:150px;
height:100px;
border:1px solid #000; </p> <p> display:-moz-inline-box;
display:inline-block;
}
</style>
</head>

<body>
我在SPAN标识外<span class="inner_span">我在SPAN标识内</span>我在SPAN标识外
</body>
</html>