box-shadow里inset为0
时间: 2023-10-20 13:26:25 浏览: 146
在CSS的box-shadow属性中,inset用于指定阴影是内部阴影还是外部阴影。当inset的值为0时,表示阴影是外部阴影,不是内部阴影。这意味着阴影会被绘制在元素的边界之外,而不是在元素的内部。具体来说,当设置box-shadow属性时省略inset或将其值设为0,阴影将被渲染为外部阴影。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [分享CSS3里box-shadow属性的使用方法,包括内阴影box-shadow:inset](https://blog.csdn.net/ly000666/article/details/120661371)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [css3 transition box-shadow 变为inset 不生效](https://blog.csdn.net/printf_hello/article/details/124521431)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文