一、内边距属性1.定义:边框和内容之间的距离就是内边距2.分开写padding-top:数字px;padding-left:数字px;padding-bottom:数字px;padding-right:数字px;3.连写:padding:上右下左;4.注意点:(1)给标签设置内边距之后,标签占有的宽度和高度会发生变化(2)内边距也会有背景颜色web前端开发学习Q-q-u-n:⑦⑧④-⑦⑧③-零①②
分类:
Web程序 时间:
2019-12-21 23:06:11
阅读次数:
321
一、在默认布局的垂直方向上,默认情况下外边距是是不会叠加的,会出现合并现象,谁的外边距较大,就听谁的;但是在水平方向就不会出现这种状况,我们举个例子span{display:inline-block;width:100px;height:100px;border:1pxsolidred;}div{width:100px;height:100px;border:1pxsolidgreen;}/*我们
分类:
Web程序 时间:
2019-12-21 23:05:10
阅读次数:
187
实现部分 package util import ( "context" "fmt" "go.etcd.io/etcd/clientv3" "time" ) type Service struct { client *clientv3.Client } func NewService() *Serv... ...
分类:
其他好文 时间:
2019-12-20 09:14:59
阅读次数:
117
/go # etcdctl lease grant 200 //设置一个200秒过期的租约 lease 08e86eea8129eb12 granted with TTL(200s) /go # etcdctl lease timetolive 08e86eea8129eb12 //查看该租约的剩余... ...
分类:
其他好文 时间:
2019-12-20 01:10:46
阅读次数:
91
Anchor 是一个常用属性,用来控制当窗体大小变化,控件如何自动调整自身大小和位置 一 仅设置一个值 如果此时将窗体放大,将会变成这样: 由于固定了top, 所以top不变,那么bottom自然会因为高度变大,独自增加全部大小。 对于left right 则将窗体宽度增量平分,然后分摊给两者,即各 ...
分类:
其他好文 时间:
2019-12-19 23:44:26
阅读次数:
237
func (this *LoadBalance) RoundRobinByWeight3() *HttpServer { //平滑加权轮询 for _, s := range this.Servers { s.CWeight = s.CWeight + s.Weight } sort.Sort(th... ...
分类:
编程语言 时间:
2019-12-19 23:18:36
阅读次数:
131
string (1) size_t find (const string& str, size_t pos = 0) const noexcept; c-string (2) size_t find (const char* s, size_t pos = 0) const; buffer (3) ...
分类:
其他好文 时间:
2019-12-19 19:34:38
阅读次数:
106
上面图标初始加载的时候,呈:奇数从左上淡现,偶数车左下呈现。 <div> <ul class="trantion" v-for="(item,index) in dataLI" @click="handelIdex(index)"> <li :class="'trantiones'+ (intx = ...
分类:
Web程序 时间:
2019-12-19 19:05:14
阅读次数:
117
此漏洞存在于emlog下的某个插件 友言社会化评论1.3。 我们可以看到, uyan.php 文件在判断权限之前就可以接收uid参数。并且uid未被安全过滤即写入到了$uyan_code中。 我们看一下 $uyan_code 的内容: <?php $uyan_code=\''."\r\n".'<di ...
分类:
Web程序 时间:
2019-12-18 16:19:45
阅读次数:
119
在page页面中定义的生命周期方法 onLoad 生命周期函数--监听页面加载 onReady 生命周期函数--监听页面初次渲染完成 onShow 生命周期函数--监听页面显示 onHide 生命周期函数--监听页面隐藏 onUnload 生命周期函数--监听页面卸载 Page({ /** * 页面 ...
分类:
微信 时间:
2019-12-17 22:27:32
阅读次数:
107