第171天:固定宽高DIV在浏览器中水平垂直居中,菜根谭(3):用人不宜刻 交友不宜滥

星期五 中雨 12~18℃

固定宽高的DIV在浏览器中水平垂直居中

网上流传较广的一种方法。

.myCenterDiv {
position:absolute; /*–绝对定位–*/
top:50%;
left:50%;
margin-top:-240px; /*–div高度的一半–*/
margin-left:-320px; /*–div宽度的一半–*/
width:640px;
height:480px;
background:#ECECEC;
}


菜根谭(3):用人不宜刻 交友不宜滥

【原文】
用人不宜刻,刻则思效者去;交友不宜滥,滥则贡谈者来。

【译文】
用人要宽厚而不可太刻薄,太刻薄就会使想为你效力的人离去;交友不可太滥太浮,如果这样,那些善于逢迎献媚的人就会设法接近你,来到你的身边。

这几句用来提醒今天的人们,实实再好不过。

看一些管理者,恨不得盯着你每时每刻都在工作不停,这就应了“太刻薄就会使想为你效力的人离去”。

再看我们自己,生怕得罪身边的任何一个“朋友”而有求必应,结果就应了“那些善于逢迎献媚的人就会设法接近你,来到你的身边”。如果你有一个朋友认为你不帮他就说你不够朋友,却丝毫不理解你不帮他的原因,那么这样的朋友就可以毫不犹豫的列入黑名单了。不要勉强自己,不要勉强他人,不要被人勉强。


The Herdsman and the Lost Bull
from http://classics.mit.edu/Aesop/fab.1.1.html#153

A herdsman tending his flock in a forest lost a Bull-calf from the fold. After a long and fruitless search, he made a vow that, if he could only discover the thief who had stolen the Calf, he would offer a lamb in sacrifice to Hermes, Pan, and the Guardian Deities of the forest.

Not long afterwards, as he ascended a small hillock, he saw at its foot a Lion feeding on the Calf. Terrified at the sight, he lifted his eyes and his hands to heaven, and said: "Just now I vowed to offer a lamb to the Guardian Deities of the forest if I could only find out who had robbed me; but now that I have discovered the thief, I would willingly add a full-grown Bull to the Calf I have lost, if I may only secure my own escape from him in safety."

有些时候,有些东西,失去了就失去了,太过执着的追寻,反而有可能赔上更大的代价。

RSS

上一篇:

下一篇:

发表评论

电子邮件地址不会被公开。 必填项已用*标注