rounded-corners

Rounded tables in Twitter Bootstrap 3

笑着哭i 提交于 2019-12-18 10:39:05
问题 Bootstrap 3 has dropped rounded corners on tables. Which styles should I apply to get them back when I apply the .table-bordered class, please? UPDATE So far I've come to this code, with no effect. CSS taken from Bootstrap 2.3.2: .table-bordered { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .table-bordered thead:first-child tr:first-child > th:first-child, .table-bordered tbody:first-child tr:first-child > td:first-child, .table-bordered tbody:first-child tr

Rounded tables in Twitter Bootstrap 3

你。 提交于 2019-12-18 10:38:17
问题 Bootstrap 3 has dropped rounded corners on tables. Which styles should I apply to get them back when I apply the .table-bordered class, please? UPDATE So far I've come to this code, with no effect. CSS taken from Bootstrap 2.3.2: .table-bordered { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .table-bordered thead:first-child tr:first-child > th:first-child, .table-bordered tbody:first-child tr:first-child > td:first-child, .table-bordered tbody:first-child tr

Add rounded borders to selected corners of an element

自作多情 提交于 2019-12-18 08:51:56
问题 How could I go about constructing something like this with pure CSS? This is how far I've gotten so far: Fiddle I'm struggling with how to get that rounded corner there, even if I continue to add additional span s. CODE: body { background: #000; } .container { position: relative; width: 300px; height: 150px; margin: 10% auto; } .top-right { position: absolute; top: -10px; right: 0; width: 50px; height: 1px; background: white; border-radius: 5px; } .box { width: 100%; height: 100%; background:

How to create rounded JButton in java..?

不羁岁月 提交于 2019-12-18 04:22:02
问题 I want to create rounded JButton in Java... For that I use rounded image and placed that image on button but I didn't get rounded button.. please any one can tell how to create rounded button in Java like show in below figure.. thanks in advance..... 回答1: If you're just going to use an image of a round button, then why not just use a JLabel ? That is, simply invoke setIcon(...), passing your BufferedImage instance as an argument. CODE public final class RoundedButtonDemo { private static

Rounded corners on a fieldset

对着背影说爱祢 提交于 2019-12-18 03:49:20
问题 I noticed that the "fieldset" tag renders a rounded corner border on IE (it renders squared on the other browsers). <fieldset> <legend>My legend</legend> </fieldset> BUT if i set a CSS style on the fieldset, the rounded corners disappear!! Anybody know why? How to keep the rounded corners but with another border color? [EDIT] : sorry for the confusion, i don't ask how to have rounder corners on firefox/other browsers, i want to know how to keep the rounder corners on IE and have another

UIImage with smooth rounded corners in quartz

青春壹個敷衍的年華 提交于 2019-12-17 20:27:50
问题 I am just testing the following code to round corners on UIImage: - (UIImage *)makeRoundedImage:(UIImage *)image radius:(float)radius; { CALayer *imageLayer = [CALayer layer]; imageLayer.frame = CGRectMake(0, 0, image.size.width, image.size.height); imageLayer.contents = (id) image.CGImage; imageLayer.masksToBounds = YES; imageLayer.cornerRadius = radius; UIGraphicsBeginImageContext(image.size); [imageLayer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *roundedImage =

Drawing rounded rect in core graphics

♀尐吖头ヾ 提交于 2019-12-17 20:00:51
问题 I want to replicate the event markers of the default iPad calendar, which look like this: I'm trying to use coregraphics for this, painting a path of a rounded rect. This is the result I could come up with: As you can see, iPad's version looks much smoother on the rounded corners. I tried to use a bigger line width, which looks like this: My code looks like this (got it from this website): UIColor* fillColor= [self.color colorByMultiplyingByRed:1 green:1 blue:1 alpha:0.2];

How to put rounded corners on a Chart.js Bar chart

巧了我就是萌 提交于 2019-12-17 09:59:20
问题 I have created a bar chart in chart.js using the below code. However I want to give the bars rounded corners instead of edged ones at the top of the bars. I can't find any way to do this using the global settings of chart.js. Is there any way to achieve the effect I want? var barContext = document.getElementById("canvas").getContext("2d"); var barGradientFirst = barContext.createLinearGradient(0, 0, 0, 450); barGradientFirst.addColorStop(0, 'rgba(112,122,157, 0.1)'); barGradientFirst

Rounded Button in Android

自作多情 提交于 2019-12-17 07:03:41
问题 I want to create rounded buttons in an Android program. I have looked at How to create EditText with rounded corners? What I want to achieve is: Rounded Edge Buttons Change Button background/appearance on different states (Like Onclick, Focus) Use my own PNG for the background and not create a shape. 回答1: You can do a rounded corner button without resorting to an ImageView. A background selector resource, button_background.xml : <?xml version="1.0" encoding="utf-8" ?> <selector xmlns:android=

Rounded Button in Android

懵懂的女人 提交于 2019-12-17 07:02:30
问题 I want to create rounded buttons in an Android program. I have looked at How to create EditText with rounded corners? What I want to achieve is: Rounded Edge Buttons Change Button background/appearance on different states (Like Onclick, Focus) Use my own PNG for the background and not create a shape. 回答1: You can do a rounded corner button without resorting to an ImageView. A background selector resource, button_background.xml : <?xml version="1.0" encoding="utf-8" ?> <selector xmlns:android=