1.不需要选举DR的网络:点对点网络,一条链路只有两个点,不会造成洪泛问题。
2.度量值计算:
cost = 参考带宽(默认100Mbps)/接口的实际带宽
最小为1
3.ospf协议的安全认证过程:依靠hello报文中的认证类型和认证字段。
认证类型:null表示未使用认证;simple password明文密码;cryptographic表示md5加密
4.相关配置:略
1 | window.history.go(-1); //返回上一页不刷新 |
在web开发过程中,有些情况下给内层div设置的margin却被莫名奇妙的转移给了外层div。百度之后,发现它竟然是CSS 2.1中盒模型中规定的内容:
In this specification, the expression collapsing margins means that adjoining margins (no non-empty content, padding or border areas or clearance separate them) of two or more boxes (which may be next to one another or nested) combine to form a single margin.
所有毗邻的两个或更多盒元素的margin将会合并为一个margin共享之。毗邻的定义为:同级或者嵌套的盒元素,并且它们之间没有非空内容、padding或border分隔
解决办法:
给父元素添加overflow: hidden
属性
或者给父元素添加 padding-top
属性,属性值为要设定的margin
值