草庐IT

cross-borders

全部标签

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

html - css flexbox 包装 : analogue of pseudo-classes to select start/end items on main/cross axis?

Flexbox是个好东西。但是为了更通用,当使用flexwrapping时:它需要伪类,类似于first-child或last-child或nth-child。如果元素位于主轴的末尾,或者它被包裹并且现在位于主轴的开头,这将是非常舒适的。例如,我想要这个:.flexbox{display:flex;flex-flow:rowwrap;}.flexbox.item:flex-start{/*itemsintheleftofcontainerselector*/}.flexbox.item:flex-end{/*itemsintherightofcontainerselector*/}.f

html - css flexbox 包装 : analogue of pseudo-classes to select start/end items on main/cross axis?

Flexbox是个好东西。但是为了更通用,当使用flexwrapping时:它需要伪类,类似于first-child或last-child或nth-child。如果元素位于主轴的末尾,或者它被包裹并且现在位于主轴的开头,这将是非常舒适的。例如,我想要这个:.flexbox{display:flex;flex-flow:rowwrap;}.flexbox.item:flex-start{/*itemsintheleftofcontainerselector*/}.flexbox.item:flex-end{/*itemsintherightofcontainerselector*/}.f

html - Firefox/Safari 设置高度为 [specified height - padding - border] for input[type=button]

当我使用以下CSS时:input[type=button]{background-color:white;border:1pxsolidblack;font-size:15px;height:20px;padding:7px;}使用这个HTML:我希望看到这个,所以总高度变成了36px:1pxborder7pxpadding20pxcontent(with15pxtext)7pxpadding1pxborder但是Firefox3.6和Safari4都显示了这个:(没有在其他浏览器中测试过)Screenshothttp://labs.spiqr.nl/upload/files/1223

html - Firefox/Safari 设置高度为 [specified height - padding - border] for input[type=button]

当我使用以下CSS时:input[type=button]{background-color:white;border:1pxsolidblack;font-size:15px;height:20px;padding:7px;}使用这个HTML:我希望看到这个,所以总高度变成了36px:1pxborder7pxpadding20pxcontent(with15pxtext)7pxpadding1pxborder但是Firefox3.6和Safari4都显示了这个:(没有在其他浏览器中测试过)Screenshothttp://labs.spiqr.nl/upload/files/1223

javascript - 如何删除点击时的 "Dotted Border"?

如你所见我想在单击按钮后以某种方式删除虚线。有什么想法吗?谢谢伙计们:这是我的CSS和HTML的当前状态,但仍然没有使用:.myButtoninput{position:absolute;display:block;top:5%;left:87%;height:44px;border:none;cursor:pointer;width:43px;font:bold13pxsans-serif;;color:#333;background:url("hover.png")00no-repeat;text-decoration:none;}.myButtoninput:hover{back