我想在CSS中打个洞 [英] I want to make a hole in CSS

查看:110
本文介绍了我想在CSS中打个洞的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的CSS专家,



下面是我的CSS代码,我想打个洞,我的意思是透明的禁用孔,我想把它放在我想要的任何地方就如。请告诉我。



Dear CSS Experts,

Below is my CSS code, I want to make a hole, I mean transparent disable hole and I want to place it anywhere I want it like. Please advise me.

.pageNew
{
position: fixed;
top: 0;
left: 0;
background-color: black;
z-index: 99;
opacity: 0.8;
filter: alpha(opacity=80);
-moz-opacity: 0.8;
min-height: 100%;
width: 100%;
}

推荐答案

参考 - CSS3中的交叉点 [ ^ ]。



这可能对您有所帮助。
Refer - Intersection in CSS3[^].

It might help you to get started.


您好,



在这里,我尝试用css打个洞。



Hi,

Here I try to make a hole in css.

<div class="hole">

</div>



您也可以更改背景颜色,这样您就可以了解解决方案。


you can change the background color as well, so you get the idea about solution.

body{background:green;}
.hole{width:100px; height:100px; border-radius:60px; border:8px solid red;}



点击以下链接进行现场演示。

http://codepen.io/ashishbhatt/pen/vjxkm [ ^ ]


这篇关于我想在CSS中打个洞的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆