flex布局左右两边固定,中间自适应

2020-05-06 18:42:48

flex布局左右两边固定,中间自适应

	<style>
        #flex{
            display: flex;
            background-color: skyblue;
            height: 100px;
            line-height: 100px;
        }

        #left,.right{
            width: 200px;
        }
        #center{
            background:pink;
            /*flex:1*/
            /*等价于*/
            flex-grow: 1;
            text-align: center;
        }
    </style>
    
	<div id="flex">
        <div id="left">我在左边,width: 200px;</div>
        <div id="center">我在右边,自适应</div>
        <div class="right">我在右边,width:200px</div>
    </div>


  • 2021-11-03 19:59:58

    Android 11 adb无线调试使用方法

    ​Android 11无线调试不需要再像以前一样,先插上usb线,输入命令来启用无线调试,再进行无线连接了。Android 11系统设置开发者选项中自带了无线调试,今天亲自测试了