background-image

Only background image has to fade in on page load

若如初见. 提交于 2019-12-04 01:51:05
问题 I have a div with a background image (an arrow). In the div is some text, the arrow is below it. I want the text inside the div to load with the page, but the background image load a few seconds later. This is my code: .homearrow { background: url(http://www.stefaanoyen.be/wp-content/uploads/2013/03/arrow.png) no-repeat 200px 155px; background-size: 125px 125px; float: left; -webkit-animation: fadein 4s; /* Safari and Chrome */ -moz-animation: fadein 4s; /* Firefox */ -ms-animation: fadein 4s

How can i find which image is set in imageview from my drawable?

此生再无相见时 提交于 2019-12-04 01:46:38
问题 I need to find which image is set in the imageview (onClick of imageview) from my drawble folder. For that I need to compare drawable of imageview's background and image from my drawable folder. I found some of methods for that but none of that works in my case. While debugging this problem I found one property of the imageview (on hover of imageview) named " mBackgroundResource " holds same Integer value of my image in the drawable folder. int i = R.drawable.skype; (2130837526) Imageview's

How to make background image shrink proportionally to fit button size in javascript?

老子叫甜甜 提交于 2019-12-03 23:51:08
问题 I am making a chessboard in javascript. The chessboard's squares (buttons) were originally designed to be 60px by 60px, but now they are 40px by 40px. button { width:40px; height:40px; border: 0 } However, some of the pieces that were designed for this earlier chessboard are still 60px by 60px. Is there any way in Javascript to make the images shrink proportionally to fit the square size? Currently, the images fit the square size, but do not shrink, so when I say, square.style.backgroundImage

Border-radius on background-image [closed]

安稳与你 提交于 2019-12-03 22:09:39
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is it possible to add border-radius on background-image ? Yes it is possible: div { -webkit-border-radius: 50px; -moz-border-radius: 50px; border-radius: 50px; border: none; width: 500px; height: 335px; background: url(http://themescompany.com/wp-content/uploads/2012/02/6402.jpg); } Click here for demo. Try this div { border: 10px solid white; -moz-border-radius: 10px; background:url(map_background

Change background image of <li> on click of <a> tag

纵然是瞬间 提交于 2019-12-03 21:48:58
html: <ul> <li id="Co" class="libgc" ><b>CO</b></li> <li id="NSCO" class="libgc active"><span> <a href="#NSale.php" target="homeFrame" class="aclass">NSale</a></span></li> </ul> css: .libgc { background-color: #CCC; padding-top: 5px; padding-bottom: 5px; text-align: center; background-image: url(../images/pcnav.png); border: 1px solid #CCC; } jquery: $("li").click(function(){ $(this).css('background-image', 'url("images/btnSelectedTab.png")'); $(this).css('color','black'); }); }); Problem : When I click on first link its background image is changed, but again next time when I click on other

Background image for H1 heading

点点圈 提交于 2019-12-03 20:47:34
In my wordpress theme page heading <?php the_title(); ?> . My Css: #page h1.pagetitle { width:auto; text-align:left; font-size:30px; padding:25px 40px 25px 0px; text-transform:uppercase; } #page h1.pagetitle span{ background:#202020; padding:5px 40px 5px 10px; } Html: <h1 class="pagetitle"><span><?php the_title(); ?></span></h1> I want background image like arrow ribbon like this sample http://www.123rf.com/photo_12816420_green-arrow-ribbon-on-wooden-desk.html I can place background Image directly or using background image with repeat-x.But My page title text span width is not fix at all the

css with background image without repeating the image

☆樱花仙子☆ 提交于 2019-12-03 19:03:32
问题 I have a column (lets assume the width is 40px) and there I have some rows. The height of the rows depends on the length of text (if the text is long then there is a break line and therefore the height increases). Now I want to display an icon in each row next to the text to show the user for example that he has already completed something in that tab. So I was trying to solve this by using only css. So if the user completes a tab then I change the css of that row. However, I'm not able to

CSS multiple backgrounds scrolling at different speeds

*爱你&永不变心* 提交于 2019-12-03 17:39:42
问题 I came across this website today and I was mystified: http://www.actionbutton.net/ Is he using some kind of known technique for his backgrounds that scroll at a different rate and overlap each other. I looked at the source but am pretty confused. Does anyone know what the technique is called and how to learn it? 回答1: It's call parallax there's plenty of plugin for this e.g. http://www.ianlunn.co.uk/plugins/jquery-parallax/ 回答2: Here is an approximation of the parallax effect that doesn't use

Replace background in Twitter Bootstrap navbar for IE

偶尔善良 提交于 2019-12-03 16:59:40
I am trying to replace the background image for a Twitter Bootstrap navbar with my own image. It works in Chrome, Firefox, and Safari but not in Internet Explorer. What am I missing for IE? (It remains the plain black in IE) .navbar.navbar-inverse.navbar-fixed-top .navbar-inner { background: url(/assets/navbar.png) repeat-x; box-shadow: none; border: none; -webkit-box-shadow: none; } You need to add this: filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); 来源: https://stackoverflow.com/questions/14088485/replace-background-in-twitter-bootstrap-navbar-for-ie

Did Chrome 72 break 'data:image/svg+xml;utf8' for css background svgs? [duplicate]

非 Y 不嫁゛ 提交于 2019-12-03 16:50:25
问题 This question already has answers here : SVG data image not working on Firefox or Chrome 72+ (3 answers) Closed 10 months ago . My svgs are specified in css like this: background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="15" viewBox="0 0 18 15"><g fill="none" fill-rule="evenodd" stroke="#00174a"><path d="M11 1l7 6.533L11.07 14M17.5 7.5H.5"/></g></svg>') This works in all browsers but since chrome 72 this feature no longer works in chrome. I