rounded-corners

How can I make div rounded corners with transparent background?

荒凉一梦 提交于 2020-01-02 03:44:05
问题 How can I create a div with rounded corners and transparent backgrounds? A bit like twitter does. So that at the edge of the corners you can see the page background and not a black edge. 回答1: for a simple Radius, use this CSS: div{ -moz-border-radius:10px; /* for Firefox */ -webkit-border-radius:10px; /* for Webkit-Browsers */ border-radius:10px; /* regular */ opacity:0.5; /* Transparent Background 50% */ } Greez, Chuggi 回答2: For full control over which elements are transparent and which are

Solving table rounded corner CSS

扶醉桌前 提交于 2020-01-01 06:29:05
问题 I have this CSS rule for rounded corner: th, td { padding: 8px; background: #E8ECE0; text-align: center; border: 1px solid #444; border-bottom-width: 0px; } thead { background-color: #446bb3 ; color :#fff; padding:4px; line-height:30px } tbody tr:nth-child(even) {background: #F6F6EC;} tbody tr:nth-child(odd) {background: #FFF} tr:first-child td, tr:first-child th { border-top-left-radius: 12px; border-top-right-radius: 12px; } tr:last-child td { border-bottom: 1px solid #444; border-bottom

CSS rounded corners bug in Safari?

这一生的挚爱 提交于 2019-12-31 01:47:15
问题 It seems that the CSS -rounded corners style works on some parts of my Stackexchange site(s) - SF Answers & Phonehow.com and not on others - It displays correctly in Chrome, but not in Safari.. Im not sure if this is a Safari bug, or something I am missing. The nav bar uses the rounded corners style in all browsers, but the tabs (active,featured, hot, week, month) are still square in Safari. I had few of my fellow coders check it out, and they are stuck, so I thought I would ask the question

Rounded corners fail to cut off content in webkit browsers if position:relative

我的未来我决定 提交于 2019-12-29 06:35:17
问题 Rounded corners fail to cut off content in webkit browsers (e.g. Chrome) if position:relative; See this demo. HTML: <div class="outer"> <div class="inner"> </div> <div> CSS: .outer { background:yellow; border:solid 1px black; position:relative;/* Setting this means rounded corners don't cut off content! */ overflow:hidden; -moz-border-radius: 12px; border-radius: 12px; } .inner { background:red; height:50px; } Anyone know of a fix? Thanks- 回答1: http://jsfiddle.net/USd5s/ Hate to add extra dom

How to Clip content with rounded corners in Windows Store App

百般思念 提交于 2019-12-29 05:22:14
问题 I've attempted to have a <Grid/> (with interactive stuff inside, not just an image) clipped with rounded corners (a <Border/> or a <Rectangle/> , whatever works). I've attempted multiple solutions, but none of them was compatible with a Windows Store App. No brush: RadialGradientBrush is not supported in a Windows App project. DrawingBrush is not supported in a Windows App project. The type 'VisualBrush' was not found. Verify that you are not missing an assembly reference and that all

Glide circular image gets cropped

家住魔仙堡 提交于 2019-12-24 17:28:31
问题 I'm trying to make a circular imageview using glide... I followed this tutorial How to round an image with Glide library? but my image always get the top and bottom cropped i tried to change imageview dimensions but nothing changes, always cropped and same ratio what am i doing wrong Glide.with(this).load(MasterFacade.getFacade().getLocalUser().getProfilePicUrl()).apply(RequestOptions.centerCropTransform()).into((ImageView) findViewById(R.id.profileImageView)); and the layout <ImageView

How to create UIButton in UIImageView's top left corner and bottom right corner

半腔热情 提交于 2019-12-24 03:18:15
问题 I wish to create delete button in imageview's top left corner and bottom right corner. but it doesn't look like what I needed. I wish both the buttons should be placed on corner of the Red border To create the button I used the code below UIImageView * tappedView = (UIImageView *)[recognizer view]; [tappedView.layer setBorderColor: [[UIColor redColor] CGColor]]; [tappedView.layer setBorderWidth: 2.0]; tappedView.layer.cornerRadius = 10; tappedView.layer.masksToBounds = NO; UIButton *deleteBtn

Draw a rounded rectangle using a single glDrawElement( triangle_strip…) call in OpenGL ES

笑着哭i 提交于 2019-12-23 15:36:30
问题 I want to draw a rounded rectangle in Opengl es, with a single glDraw call. I have also tried it. and shared it in the answer. Hope it will be helpful. 回答1: I have tried to draw a rounded rectangle in opengl es with single glDraw call. Below is the code snippet: // -0.3f, -0.2f, 0.0f, // 0 // 0.3f, -0.2f, 0.0f, // 1 // -0.3f, 0.2f, 0.0f, // 2 // 0.3f, 0.2f, 0.0f, // 3 // 0.6f, 0.2f, 0.0f, // 4 // 0.6f, -0.2f, 0.0f, // 5 // 0.6f, -0.5f, 0.0f, // 6 // 0.3f, -0.5f, 0.0f, // 7 // -0.3f, -0.5f, 0

FPDF table cells margin and rounded corners

£可爱£侵袭症+ 提交于 2019-12-23 05:15:51
问题 I am working on the creating PDF report files with tables. And I need to have margin between each table cell and rounded corners for each cell also. Something like this: http://joxi.net/L21XyyLh8aRnLm Is there any ways to do so? 回答1: This script from fpdf.org is capable of drawing rounded rectangles. Let's extend it to add a $cellspacing variable: <?php require('rounded_rect.php'); class Bohdan_PDF extends PDF { var $cellspacing = 1; function SetCellspacing($cellspacing) { $this->cellspacing

Delete button not showing on UITableViewCell with rounded corners

三世轮回 提交于 2019-12-23 00:41:28
问题 In my tableview, I have logic in my tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) to determine if a cell has rounded corners on top, bottom, or no rounded corners at all. override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { if indexPath.row == 0 { // round top 2 corners let maskLayer = CAShapeLayer() maskLayer.path = UIBezierPath(roundedRect: cell