box-shadow

Chrome Box-Shadow display error in combination with border-radius

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: http://jsfiddle.net/54tLcje5/ HTML: <div id="layer_content_wrapper"> </div> CSS: body { background-color: black; } #layer_content_wrapper { position: absolute; z-index: 100; width: 300px; height: 300px; background-color: rgba(0, 0, 0, 0.7); background-color: white; left: 50%; margin-left: -150px; top: 60px; -webkit-border-radius: 150px; -webkit-box-shadow: 0px 0px 300px 100px red; } Is there a workaround? Am I doing something wrong? The display error did not occur rughly 3 Months ago...it has to have something to do with something which has

iPhone iOS will not display box-shadow properly

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The Design The contact form on a responsive design has input fields with both an inset shadow and regular outside shadow. See image below. The Code input { background:#fff; height:auto; padding:8px 8px 7px; width:100%; box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; border:#fff solid 3px; border-radius:4px; box-shadow:0px 0px 5px rgba(0, 0, 0, .25), inset 2px 2px 3px rgba(0, 0, 0, .2); } The Issue iOS v4+ does not display the box-shadow properly. See image below. Tested I have attempted using -webkit-box

jQuery的基本使用

匿名 (未验证) 提交于 2019-12-02 21:53:52
jQuery(document).ready( function(){ $("button").click( function(){ /*获取元素标签*/ $("p").css("color","red").hide(5000); $("< h3>PHP中文网< /h3>").appendaTo(document.body);/*appendTo添加元素*/ }); }); /*当页面元素加载完毕时开始执行*/ $(function(){ $("button").click( function(){ /*获取元素标签*/ $("p").css("color","red").hide(5000); $("< h3>PHP中文网< /h3>").appendaTo(document.body);/*appendTo添加元素*/ }); }); document.getElementTagName('li')[2].style.color="red"; /*将第三个li标签的字体设置为红色*/ 可以变为: $(document.getElementTagName('li')[2]).css("color","red"); $("li").get(2).style.color="red"; $("li")[2].style.color="red"; < img src="xxx.jpg"

盒子阴影

匿名 (未验证) 提交于 2019-12-02 20:32:16
    h1{ /*文字阴影*/ font-size: 100px; text-shadow: 10px 3px 3px rgba(0,0,0,.5) ; } div{ /*盒子阴影*/ width: 200px; height: 200px; border: 10px solid #cccccc; /*box-shadow:水平位置 垂直位置 模糊距离 阴影尺寸(影子大小) 阴影颜色*/ /*box-shadow:5px 5px 3px 4px rgba(0,0,0,.4);*/ box-shadow: 0 15px 30px rgba(0,0,0,.5); /*类似小米官网商品动态*/ } <h1>三生三世十里桃花</h1> <div></div> 文章来源: 盒子阴影

Calculating shadow values for all Material Design elevations

回眸只為那壹抹淺笑 提交于 2019-12-02 14:43:18
In the latest Material Design documentation ( https://www.google.com/design/spec/what-is-material/elevation-shadows.html#elevation-shadows-elevation-android- ) an exhaustive set of UI elements are referenced with their respective elevation (z-index in dp). For example a switch is elevated by 1dp , while a dialog is elevated by 24dp . Currently Google's list of UI elements uses 10 different elevation levels. Since the elevation decides the shadow of the element, we'll need 10 different shadows. And that's where I'm lost. How do you calculate/deduce the right shadow values (color, x-offset, y

Only CSS rotate box-shadow without original element

人走茶凉 提交于 2019-12-02 11:01:13
问题 I have a small problem, I want to create 45 degree shadow for a picture. But if I use my code my object is rotating too. So I would like to ask for help with this problem. My code: .item { box-shadow: -50px 80px 4px 10px #555; -webkit-transform: rotate(10deg); -moz-transform: rotate(10deg); -o-transform: rotate(10deg); -ms-transform: rotate(10deg); transform: rotate(10deg); } 回答1: Most flexible answer using only CSS is probably this: .item { position: relative; /* or absolute */ } .item

VUE 超好看气泡进度条组件

放肆的年华 提交于 2019-12-02 10:41:30
超好看的气泡进度条, 已封装成组件. 二话不说先上图 ↓↓↓ 一, 先将这张图片放入 assets 文件夹内 (因为是透明背景图片,所以用箭头框起来了) ↓↓↓ → ← ↑↑↑ 二, 在 components 文件夹内新建一个 progress-bar.vue 文件 Copy 下面这段代码进去 <template> <div class="template-view"> <div class="progressbar-card"> <div class="progressbar" :style="{'width':Cardwidth+'%','height':Cardheight+'px'}"> <div class="before"></div> <div :class="bartusecolor[ColorIndex]" :style="{'width':width+'%','transition':'width'+' '+time+'s'}"> <span></span> </div> <div class="label-flex"> <div class="label la-top"> <div :class="barardcolor[ColorIndex]"> <span></span> </div> <span class="traffic-info">{{title}

box-shadow inset

送分小仙女□ 提交于 2019-12-02 08:31:33
安卓支持,ios不支持:box-shadow: 0px 0px 2px inset rgba(0,0,0,0.08); 安卓,ios都支持:box-shadow: inset 0px 0px 2px rgba(0,0,0,0.08); 来源: https://www.cnblogs.com/rachelch/p/11737701.html

Only CSS rotate box-shadow without original element

隐身守侯 提交于 2019-12-02 06:54:52
I have a small problem, I want to create 45 degree shadow for a picture. But if I use my code my object is rotating too. So I would like to ask for help with this problem. My code: .item { box-shadow: -50px 80px 4px 10px #555; -webkit-transform: rotate(10deg); -moz-transform: rotate(10deg); -o-transform: rotate(10deg); -ms-transform: rotate(10deg); transform: rotate(10deg); } Most flexible answer using only CSS is probably this: .item { position: relative; /* or absolute */ } .item:before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: transparent; box

css3新增

醉酒当歌 提交于 2019-12-02 03:38:58
1.圆角边框 border-radius  border-radius 属性用于设置元素的外边框圆角  语法:border-radius:length;   参数值可以是数值 或者 百分比 的形式   正方形,数值设置宽或高的一半,或者 50%;   矩形,数值设置高度的一半 2.盒子阴影 box-shadow   box-shadow:水平阴影的位置 垂直阴影的位置 模糊距离 阴影尺寸 阴影颜色 外部阴影    模糊距离:影子的虚实    阴影尺寸:影子大小   注意:    1.默认值外阴影(outset),但是不可以写这个单词,否则导致阴影无效    2.盒子阴影不占用空间,不会影响其他盒子排列 3.文字阴影 text-shadow   box-shadow:水平阴影的位置 垂直阴影的位置 模糊距离 阴影颜色 ; 来源: https://www.cnblogs.com/qtbb/p/11729357.html