小编Jon*_*nny的帖子

指定所有浏览器都遵守的字体大小时是否为十进制精度?

如果我使用以下CSS:

p {
    font-size: 20.5px;
}
Run Code Online (Sandbox Code Playgroud)

是否所有浏览器都将其绘制为20.5px,或者将某些值绕过该值?

css cross-browser font-size

11
推荐指数
1
解决办法
1万
查看次数

是否可以链接外部页面的"view-source:"?

我尝试使用<a href="view-source:google.com">External Source</a>但只返回一个断开的链接.

html view-source

9
推荐指数
1
解决办法
5029
查看次数

CommonJS导入vs ES6导入

以下是使用非默认导出的两个示例.第一个使用commonjs语法,第二个使用es6.为什么第一个例子有效,但不是第二个?

// commonjs --- works!
var ReactRouter = require('react-router')
var Link = ReactRouter.Link


// es6 --- doesn't work!
import ReactRouter from 'react-router'
var Link = ReactRouter.Link
Run Code Online (Sandbox Code Playgroud)

我明白我可以使用import { Link } from 'react-router',但我只是试图了解每个导入的不同之处.

import commonjs ecmascript-6 reactjs

8
推荐指数
1
解决办法
2522
查看次数

在css转换期间,图像border-radius不起作用

我正在用它border-radius: 50%;来制作图像.默认情况下,图像模糊和缩放(带有隐藏的溢出),并且在悬停时它将删除模糊和缩放.但是,当我在元素上使用CSS转换时,它会暂时显示转换持续时间的溢出.

http://jsfiddle.net/jonny_me/cyvL61qx

css blur flicker hover css3

7
推荐指数
1
解决办法
6115
查看次数

一些bootstrap glyphicons没有加载

我有一个WordPress主题,我正在使用Bootstrap Sass源构建.样式是有效的,但大多数字形不是(只有星号和加号).我正在编译我的Bootstrap到style.css相对于那个,有一个文件夹调用fonts它来保存glyphicons(我设置$icon-font-path: "fonts/";)这是我编译的一个片段style.css,表明字体路径是正确的:

@font-face { font-family: 'Glyphicons Halflings'; src: url("fonts/glyphicons-halflings-regular.eot"); src: url("fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"), url("fonts/glyphicons-halflings-regular.woff2") format("woff2"), url("fonts/glyphicons-halflings-regular.woff") format("woff"), url("fonts/glyphicons-halflings-regular.ttf") format("truetype"), url("fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg"); }
.glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
Run Code Online (Sandbox Code Playgroud)

例如,这些工作:

<span class="glyphicon glyphicon-asterisk" aria-hidden="true"></span>
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Run Code Online (Sandbox Code Playgroud)

但这些不是:

<span class="glyphicon glyphicon-thumbs-up" aria-hidden="true"></span>
<span class="glyphicon glyphicon-heart" aria-hidden="true"></span>
Run Code Online (Sandbox Code Playgroud)

这是一个glyphicon类的片段:

.glyphicon-asterisk:before { content: "\2a"; }
.glyphicon-plus:before { content: "\2b"; …
Run Code Online (Sandbox Code Playgroud)

wordpress sass twitter-bootstrap bootstrap-sass glyphicons

6
推荐指数
1
解决办法
2万
查看次数

通过突出显示并同时右键单击Sublime Text来注释掉代码

我不想把鼠标移到Ctrl+ Shift+上/,而是希望能够通过突出显示它来评论代码,然后在按住鼠标左键的同时右键单击并将其注释掉 - 尽管我不喜欢不知道Sublime Text键绑定是否可行.

如果没有,我将只使用自定义键盘快捷键,但我更喜欢鼠标方法.

sublimetext sublimetext3 sublime-text-plugin

3
推荐指数
1
解决办法
609
查看次数

是否有一个命令行工具来实时显示git状态?

我知道git gui就像桌面上的sourcetree和github,但我想知道是否有任何可用的东西,我可以从命令行"监视"更改并显示git文件的状态.如果我要修改文件,它将改变它的状态而不必运行git status.

git command-line

2
推荐指数
1
解决办法
625
查看次数

0
推荐指数
1
解决办法
138
查看次数