middle

主页代码

☆樱花仙子☆ 提交于 2020-03-16 11:02:11
<?php session_start(); include "inc/chec.php"; include "conn/conn.php"; include "inc/func.php"; ?> <link href="css/style.css" rel="stylesheet" /> <script src="js/client_js.js"></script> <table width="765" border="0" cellpadding="0" cellspacing="0" style="margin-top:15px; background-color:#DEEBEF;"> <tr> <td height="36" colspan="2" background="./images/list.jpg" id="list">最新消息</td> </tr> <tr> <td width="50%" align="center" valign="top"> <table width="100%" height="195" border="0" cellpadding="0" cellspacing="0" class="big_td"> <tr> <td height="20" align="center" valign="middle">企业公告</td> </tr>

字典相关函数(增删改查)

偶尔善良 提交于 2020-02-11 16:17:19
# ###字典的相关函数 (增删改查) # (1) 增 dictvar = {} dictvar['top'] = "凯" dictvar['middle'] = "妲己" dictvar["bottom"] = "鲁班七号" dictvar["jungle"] = "刘备" dictvar["support"] = "刘邦" print(dictvar) #fromkeys() 使用一组键和默认值创建字典 listvar = ["a","b"] dic = {}.fromkeys(listvar,None) print(dic) # 不推荐使用fromkeys ''' dic = {}.fromkeys(listvar,[]) dic['a'].append(55) print(dic['b']) ''' # (2)删除 #pop() 通过键去删除键值对 (若没有该键可设置默认值,预防报错) dictvar = {'top': '凯', 'middle': '妲己', 'bottom': '鲁班七号', 'jungle': '刘备', 'support': '刘邦'} dictvar.pop("middle") print(dictvar) # dictvar.pop("middle123") dictvar.pop("middle123","该键不存在") print

flex几种多列布局

◇◆丶佛笑我妖孽 提交于 2019-12-04 03:45:46
基本的等分三列布局 .container{ display: flex; width: 500px; height: 200px; } .left{ flex:1; background: red; } .middle{ flex:1; background: green; } .right{ flex:1; background: blue; } <div class="container"> <div class="left"></div> <div class="middle"></div> <div class="right"></div> </div> 三列 左中定宽 右侧自适应 .container{ display: flex; height: 300px; } .left{ flex: 0 0 100px; background-color: red; } .middle{ flex: 0 0 100px; background-color: green; } .right{ flex:1; background-color: blue; } <div class="container"> <div class="left">qqq</div> <div class="middle">qqq</div> <div class="right">wwww</div> <