摘要:
Div默认高度为0 阅读全文
摘要:
img 和 input都是内容,剧中用text align 阅读全文
摘要:
1 2 3 4 5 6 51 52 53 54 爱宠知识 55 56 养狗比养猫更健康 57 养狗比养猫更健康 58 ... 阅读全文
摘要:
<style type="text/css"> .box{ height: 40px; background-color: #eee; border-top: orange solid 3px; border-bottom: 1px solid #aaa; } .box2{ ; width: 600 阅读全文
摘要:
margin 0 auto是盒子包含盒子时的水平居中 text align是盒子包含内容时的水平居中 阅读全文
摘要:
table{ width: 200px; height: 300px; border: red solid 1px; border-collapse: collapse; } td{ border: red solid 1px; } </style> </head> <body> <table > 阅读全文
摘要:
cellspacing="0" 单元格之间的距离cellpadding=”2” 内容距边框的距离如果直接给表格用align=”center” 表格居中如果给tr或者td使用 ,tr(一行的内容)或者td内容居中。<table border="50"表示单元格边框像素值colspan=”2” 合并同一 阅读全文
摘要:
array=[1,3,4,71,2] def add_num(x): return x+1 def map_test(func,array): ret=[] for i in array: ret.append(func(i)) return ret print(map_test(add_num,array)) #可以使用匿名函数 print(... 阅读全文
摘要:
元祖不可以改变;列表可变,列表用[]元祖用(),字典和列表都用{} 集合:无序 元祖:有序 列表:有序 字典:无序 数字,元祖,字符串是不可以修改的 对比下列两个程序的差异 全局变量对于可变元素可以不声明修改 name=['linnan','syh'] def change(): name.append("mm") change() print(name) ******** name=... 阅读全文