css中的inset,CSS inset()用法及代码示例

inset()函数是CSS中的内置函数,与filter属性一起使用以更改图像的插入。

用法:

inset( length | percentage );

参数:此函数接受单个参数长度,该参数长度用于保存应用于图像的对比度级别的值。参数可以是百分比值或长度。它是必填参数。

Example:

CSS | inset() function

div {

float:left;

width:185px;

height:185px;

shape-outside:inset(20%);

}

img {

width:145px;

height:150px;

}

h1,

h4 {

text-align:center;

}

h1 {

color:green;

}

.clr {

color:white;

}

GeeksforGeeks

CSS | inset() function

        p

"https://media.geeksforgeeks.org/wp-content/uploads/20190807114330/GFG115.png"

alt="Sample image">

How many times- were you frustrated while looking out for a

good collection of programming/algorithm/interview questions?

What did you expect and what did you get? This portal has been

created to provide well written, well thought and well explained

solutions for selected questions. An IIT Roorkee alumnus and

founder of GeeksforGeeks. He loves to solve programming problems

in most efficient ways. Apart from GeeksforGeeks, he has worked

with DE Shaw and Co. as a software developer and JIIT Noida as

an assistant professor.It is a good platform to learn programming.

It is an educational website. Prepare for the Recruitment drive

of product based companies like Microsoft, Amazon, Adobe etc with

a free online placement preparation course.

输出:

8bbb96f7eb65d04ec3e2307614f7e5ef.png

支持的浏览器:CSS |下面列出了inset()函数:

谷歌浏览器

微软Edge

Mozila Firefox

苹果浏览器

Opera

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值