草庐IT

background_color

全部标签

微信小程序 background多个background背景图叠加以及连写注意事项

background:url('https://xxxxxxxx.com')no-repeattop/100%auto,linear-gradient(318deg,#3F00000%,#A9143A100%);效果:坑点:1:多个背景图叠加时(渐变也相当于图片)以逗号分割,越靠前图片叠加时层级越高。网上搜索时发现找到的都是说越靠后层级越高,但我测试的时候确实是越靠前越高。2:连写时多个属性以空格间隔。但图片的位置(background-position)与图片大小(background-size)不能以空格间隔,需要top/100%auto(background-size在backgroun

day40-3d Background Boxes(3D背景盒子转换)

50天学习50个项目-HTMLCSSandJavaScriptday40-3dBackgroundBoxes(3D背景盒子转换)效果index.htmlDOCTYPEhtml>htmllang="en">head>metacharset="UTF-8"/>metaname="viewport"content="width=device-width,initial-scale=1.0"/>title>3DBoxesBackgroundtitle>linkrel="stylesheet"href="style.css"/>head>body>buttonid="btn"class="magic">

javascript - Chart.js 条形图 : Grid color and hide label

我正在尝试在chart.js中更改为我的网格的背景颜色,我已经尝试按照文档进行操作并且做了很多研究,但我似乎无法弄清楚。我也想摆脱top标签,也找不到简单的方法。我所说的标签是在此处的演示中显示“我的第一个数据集”的标签:http://www.chartjs.org/docs/#bar-chart解决方法:varctx=document.getElementById("myChart");varmyChart=newChart(ctx,{type:'bar',data:{labels:["Maandag","Dinsdag","Woensdag","Donderdag","Vrijda

javascript - Chart.js 条形图 : Grid color and hide label

我正在尝试在chart.js中更改为我的网格的背景颜色,我已经尝试按照文档进行操作并且做了很多研究,但我似乎无法弄清楚。我也想摆脱top标签,也找不到简单的方法。我所说的标签是在此处的演示中显示“我的第一个数据集”的标签:http://www.chartjs.org/docs/#bar-chart解决方法:varctx=document.getElementById("myChart");varmyChart=newChart(ctx,{type:'bar',data:{labels:["Maandag","Dinsdag","Woensdag","Donderdag","Vrijda

html - Firefox 中的圆 Angular : space between border and background

我有一个要应用圆Angular的div。这是我的demofiddle. div{margin:20px;width:250px;height:250px;-moz-border-radius:15px;-webkit-border-radius:15px;-khtml-border-radius:15px;border-radius:15px;background-color:#4c66a1;border:2pxsolid#4c66a1;}我还为这个div应用了边框和背景色。问题出现在Firefox中。在div的边框和背景颜色之间有少量空白(见下图)。它非常小,但人们还是注意

html - Firefox 中的圆 Angular : space between border and background

我有一个要应用圆Angular的div。这是我的demofiddle. div{margin:20px;width:250px;height:250px;-moz-border-radius:15px;-webkit-border-radius:15px;-khtml-border-radius:15px;border-radius:15px;background-color:#4c66a1;border:2pxsolid#4c66a1;}我还为这个div应用了边框和背景色。问题出现在Firefox中。在div的边框和背景颜色之间有少量空白(见下图)。它非常小,但人们还是注意

javascript - jQuery/CSS : fixed overlay should not allow scrolling of background?

我有一个固定在屏幕中央的覆盖框。该页面本身相当长,并且有一个垂直滚动条。我想在显示叠加层后禁用页面本身的滚动。但是我不能完全禁用滚动,因为一些叠加层本身确实有overflow-y:scroll。因此叠加层中的内容应该滚动,但页面本身应该卡住。知道如何用jquery或css解决这个问题吗? 最佳答案 我能想到的最快和最肮脏的方法是为滚动事件的窗口附加一个事件监听器,如果您的叠加层可见则防止默认()。像这样(使用jquery)。window.addEventListener('scroll',function(e){varel=$('.

javascript - jQuery/CSS : fixed overlay should not allow scrolling of background?

我有一个固定在屏幕中央的覆盖框。该页面本身相当长,并且有一个垂直滚动条。我想在显示叠加层后禁用页面本身的滚动。但是我不能完全禁用滚动,因为一些叠加层本身确实有overflow-y:scroll。因此叠加层中的内容应该滚动,但页面本身应该卡住。知道如何用jquery或css解决这个问题吗? 最佳答案 我能想到的最快和最肮脏的方法是为滚动事件的窗口附加一个事件监听器,如果您的叠加层可见则防止默认()。像这样(使用jquery)。window.addEventListener('scroll',function(e){varel=$('.

html - CSS 拼图 : How to add background-image and set height/width on empty span?

我已经在几个span元素上设置了background-image,但它们没有显示,我想是因为我的height和width设置被忽略。HTML来源:CSS:span.sidebar-poster{margin-bottom:10px;background-repeat:no-repeat;width:160px;}span#starthere{background-image:url(/betatesting/wp-content/themes/dynamik/css/images/brunelwantsyou180.jpg);height:285px;}span#starthere:h

html - CSS 拼图 : How to add background-image and set height/width on empty span?

我已经在几个span元素上设置了background-image,但它们没有显示,我想是因为我的height和width设置被忽略。HTML来源:CSS:span.sidebar-poster{margin-bottom:10px;background-repeat:no-repeat;width:160px;}span#starthere{background-image:url(/betatesting/wp-content/themes/dynamik/css/images/brunelwantsyou180.jpg);height:285px;}span#starthere:h