测试一下发布文章的功能
01/14
今天是个伟大的时候终于把自己的博客给弄上去了!
<style scoped>
/* 放大的图片,通过定位将左上角定位到(0,0) */
.rightImg {
display: inline-block;
width: 800px;
height: 800px;
position: absolute;
top: 0;
left: 0;
} /* 右边的区域图片放大空间 */
.right {
margin-left: 412px;
width: 400px;
height: 400px;
border: 1px solid red;
position: relative;
overflow: hidden;
} /* 一个最高层层罩 */
.maskTop {
width: 400px;
height: 400px;
position: absolute;
z-index: 1;
top: 0;
left: 0;
} /* 层罩,通过定位将左上角定位到(0,0) */
.top {
width: 200px;
height: 200px;
background-color: lightcoral;
opacity: 0.4;
position: absolute;
top: 0;
left: 0;
} /* 原图的显示 */
.leftImg {
width: 400px;
height: 400px;
display: inline-block;
} /* 原图的容器 */
.left {
width: 400px;
height: 400px;
border: 1px solid teal;
float: left;
position: relative;
}
</style>