草庐IT

border-layout

全部标签

html - 为什么 border-radius 在 MobileSafari 中的文本输入上不能正常工作?

这是一个引用HTML文档:body{background-color:#000;}input{-webkit-border-radius:20px;}border-radius在基于Safari/WebKit的桌面浏览器上呈现良好,但在“MobileSafari”变体,即iPhone和iPad浏览器上,它呈现这个奇怪的框,这破坏了当输入显示在不同颜色的背景上时出现圆Angular错觉。 最佳答案 我设法通过减小边界半径来解决这个问题。该错误似乎只在边框半径大于元素高度的一半时才会出现。所以如果-webkit-border-radiu

html - CSS 位置 :fixed without top gives unexpected layout?

给定:FixeddivNon-fixeddivNon-fixeddivNon-fixeddiv和:*{box-sizing:border-box;}body{margin:0;padding:0;}#fixed{position:static;width:100%;border:3pxsolid#f00;}#nonfixed{margin-top:50px;border:3pxsolid#00f;}注意position:static,这给出了预期的结果(fiddle):但是,将position:static更改为fixed,您会得到这个(fiddle)即使#fixeddiv不在#non

html - IE11 - border-radius 和 box-shadow 一起导致问题

遵循我的代码:div{display:block;width:500px;height:200px;border:1pxsolidblack;border-radius:5px;transition:box-shadow1s;}div:hover{box-shadow:25px25px0px#000;}Test它可以在Chrome、Safari和Firefox上运行,但在InternetExplorer11上运行不佳,当div不再聚焦时会出现明显的视觉问题。如何解决?JSFiddle:https://jsfiddle.net/aL0t8g21/ 最佳答案

html - 为什么 border-radius 不完善实际的边框样式?

这在Chrome、FF和IE10中进行了测试,它们的行为方式相同,所以我认为这不是错误,而是我做错了/不知道的事情。这是我看到的:这是CSS:table#calendarTable{border:2pxinset#888;width:100%;margin:auto;background-color:#61915f;border-collapse:collapse;text-align:center;border-radius:25px25px25px25px;-moz-border-radius:25px25px25px25px;-ms-border-radius:25px25px2

html - CSS 对象适合 : contain; is keeping original image width in layout

我正在尝试使用object-fit:contain使我的图像在一些flexbox容器内响应,并且当图像调整大小时,布局似乎保持原始图像大小,导致滚动条出现。使用ChromeDevTools查看图片的宽度,宽度依然是1024(不过高度已经适当降低)(我从AutoResizeImageinCSSFlexBoxLayoutandkeepingAspectRatio?中获得了灵感来达到这一点)我是否缺少一些额外的CSS属性?JSFiddle:https://jsfiddle.net/w6hgqf18/1/html,body{margin:0;height:100%;}.page{height:

Android 线性布局 : Add border with shadow around a LinearLayout

我想创建与示例相同的此LinearLayout的边框:在这个例子中,我们可以看到linearLayout周围的边框并不相同。如何使用XML可绘制文件创建它?目前,我只能像这样在LinearLayout周围创建一个简单的边框: 最佳答案 试试这个.. 关于Android线性布局:AddborderwithshadowaroundaLinearLayout,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/

Android 线性布局 : Add border with shadow around a LinearLayout

我想创建与示例相同的此LinearLayout的边框:在这个例子中,我们可以看到linearLayout周围的边框并不相同。如何使用XML可绘制文件创建它?目前,我只能像这样在LinearLayout周围创建一个简单的边框: 最佳答案 试试这个.. 关于Android线性布局:AddborderwithshadowaroundaLinearLayout,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/

html - 如何根据屏幕尺寸制作@angular/flex-layout wrap

我有3个div,我可以根据屏幕尺寸将其变大或变小,但无法像bootstrap那样将其换行。所以对于小屏幕,我希望div垂直堆叠,大屏幕水平堆叠。例如有人知道我如何使用Angular2做到这一点吗?我选择使用我npm的@angular/flex-layout。注意:我不认为“彩色框”中的任何内容与任何内容有冲突。这是我的代码...import{Component}from'@angular/core';@Component({selector:'my-app',//templateUrl:'./app/app.component.html',template:`flexibleforsc

html - 用 border-radius 和 translate3d overflow hidden

当带有overflow:hidden;和border-radius的block内容平移时,它的Angular不会隐藏。有解决办法吗?HTMLCSS.scroller{width:300px;height:500px;border:3pxsolidred;border-radius:30px;overflow:hidden;}.scroller-content{width:300px;height:300px;background:green;-webkit-transform:translate3d(0,-8px,0);}http://jsfiddle.net/aZ5Qn/

html - Angular Flex 布局 : Responsive layout combining row and column

我在学习flex-layout,并且我正在尝试创建响应式UI。我有多年使用引导网格系统的经验,但我似乎无法理解如何完成以下操作(livedemo):在大型显示器上:在中型显示器上:在手机上:如果我理解正确的话,我必须使用行和列的组合,就像下面的代码..codeleftout....codeleftout....codeleftout....codeleftout..在小屏幕上,布局从row更改为column,这意味着我已经为大型和移动显示器实现了上面的UI示例。问题:如何实现中型显示器的用户界面(见上图)?我无法理解如何组合row和column 最佳答案