草庐IT

icon-border

全部标签

html - 仅使用 html/css 更改悬停时的 Google Material Icon

我想在按钮悬停时更改GoogleMaterialIcon(实际图标本身)。我想只使用HTML和CSS来做到这一点。我希望它从“加号”图标变为“检查”图标之类的东西,特别是使用“完成”图标。下面的代码笔。谢谢.material-icons.md1{font-family:'MaterialIcons';font-weight:normal;font-style:normal;font-size:33px;margin-top:12px;}.btnwrap{position:fixed;z-index:2;height:60px;width:300px;background-color:#

html - 仅使用 html/css 更改悬停时的 Google Material Icon

我想在按钮悬停时更改GoogleMaterialIcon(实际图标本身)。我想只使用HTML和CSS来做到这一点。我希望它从“加号”图标变为“检查”图标之类的东西,特别是使用“完成”图标。下面的代码笔。谢谢.material-icons.md1{font-family:'MaterialIcons';font-weight:normal;font-style:normal;font-size:33px;margin-top:12px;}.btnwrap{position:fixed;z-index:2;height:60px;width:300px;background-color:#

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的边框和背景颜色之间有少量空白(见下图)。它非常小,但人们还是注意

html - Safari 10.1 – 文本对齐 : justify text goes outside the border in RTL languages

我在body元素中有一个带有文本段落的HTML标记。在CSS样式表中,我添加了:body{text-align:justify;color:black;background-color:white;font-size:23;letter-spacing:0.05pt;line-height:125%;font-size:1.25em;margin:0.00em20em;text-indent:0em;font-weight:normal;font-style:normal;direction:rtl;}当我在Safari10.1中加载它时,文本超出了正文边框。但是相同的标记在旧版本的S

html - Safari 10.1 – 文本对齐 : justify text goes outside the border in RTL languages

我在body元素中有一个带有文本段落的HTML标记。在CSS样式表中,我添加了:body{text-align:justify;color:black;background-color:white;font-size:23;letter-spacing:0.05pt;line-height:125%;font-size:1.25em;margin:0.00em20em;text-indent:0em;font-weight:normal;font-style:normal;direction:rtl;}当我在Safari10.1中加载它时,文本超出了正文边框。但是相同的标记在旧版本的S

javascript - 在 box-sizing :border-box is set in CSS? 时,JavaScript 中有没有一种方法可以直接获取元素的内容宽度

如果我们在CSS中设置它(自动前缀):*{box-sizing:border-box}然后getComputedStyle(elem).width包括元素的填充。现场演示:http://jsfiddle.net/simevidas/EpUnp/我想获取元素内容框的宽度(不带内边距)。是否有用于此的标准API,还是我必须手动减去填充? 最佳答案 getBoxQuadsAPI可以做到。(它在FirefoxNightly中受支持)。varquad=elem.getBoxQuads({box:'content'})[0];varconten

javascript - 在 box-sizing :border-box is set in CSS? 时,JavaScript 中有没有一种方法可以直接获取元素的内容宽度

如果我们在CSS中设置它(自动前缀):*{box-sizing:border-box}然后getComputedStyle(elem).width包括元素的填充。现场演示:http://jsfiddle.net/simevidas/EpUnp/我想获取元素内容框的宽度(不带内边距)。是否有用于此的标准API,还是我必须手动减去填充? 最佳答案 getBoxQuadsAPI可以做到。(它在FirefoxNightly中受支持)。varquad=elem.getBoxQuads({box:'content'})[0];varconten

html - border-radius 在 Firefox 中对输入类型不起作用

在webkit浏览器中一切正常。但是当我尝试将border-radius与input[type="url"]一起使用时,它不起作用。甚至不只是使用输入。一切仍然有效。CSSsection.crypterinput{border-radius:15px;-moz-border-radius:15px;-webkit-border-radius:15px;padding:5px;}HTML为什么Firefox不允许我设置输入的样式? 最佳答案 看起来您需要先设置边框样式:input{border:1pxsolid#666666;bord

html - border-radius 在 Firefox 中对输入类型不起作用

在webkit浏览器中一切正常。但是当我尝试将border-radius与input[type="url"]一起使用时,它不起作用。甚至不只是使用输入。一切仍然有效。CSSsection.crypterinput{border-radius:15px;-moz-border-radius:15px;-webkit-border-radius:15px;padding:5px;}HTML为什么Firefox不允许我设置输入的样式? 最佳答案 看起来您需要先设置边框样式:input{border:1pxsolid#666666;bord