让内联元素支持宽高的几个设置

Posted xiadengqi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了让内联元素支持宽高的几个设置相关的知识,希望对你有一定的参考价值。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
<style>
span{
    /*float: left;*/
    /*position: absolute;*/
    /*display: inline-block;*/
  /*display: block;*/
width: 100px; height: 100px; background:red; } </style> </head> <body> <span>123</span> </body> </html>

技术分享图片

 



以上是关于让内联元素支持宽高的几个设置的主要内容,如果未能解决你的问题,请参考以下文章