我有一个列出项目的网页.默认模板使用一个表,我觉得非常合适.但是,在此表中,有一列包含比其他列更多的文本:

虽然这在大屏幕上运行,但在小屏幕上阅读非常烦人:

为了更好地使用可用空间,我只能想到使用div的假表格布局.我做了一个原型,使用自举网格布局,在大屏幕上看起来像一个表行,但在小屏幕和超小屏幕上有不同的布局:

虽然这通过使用全宽度来提高文本的可读性,但我不能再使用我已经获得的用于桌面的实用程序,并且它以微妙的方式打破了用户体验.例如,我使用一个很好的脚本,可以在客户端进行排序.但这只适用于真实的桌子.(此外,真实表和假表之间存在小的不一致和视觉差异)
有什么方法可以将表格行重新格式化为类似于上一张图像中的多行容器吗?
仅供参考:我在服务器上使用jquery 2.1.1,Bootstrap 3.2.0.1作为GUI Framework和asp.net MVC.
Bootply在这里:http://www.bootply.com/pRehwTai4G
编辑:如果不够清楚:我想保留<tr>和<td>标签,但他们的样式类似于div.我不想用div替换表.
html responsive-design twitter-bootstrap twitter-bootstrap-3
在 d.ts 中通过 import 声明模块依赖第三方模块时,Vscode 提示“找不到模块”,有什么解决办法吗?
tsconfig.json
{
"compilerOptions": {
"outDir": "./dist/",
"target": "es5",
"lib": ["esnext", "dom.iterable","dom", "scripthost", "es2015.symbol"],
"sourceMap": true,
"noImplicitAny": true,
"jsx": "react",
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"allowJs": true,
"module": "commonjs",
"isolatedModules": false,
"esModuleInterop": true
},
"include": ["src/**/*","typings/*"],
"exclude": ["node_modules"]
}
Run Code Online (Sandbox Code Playgroud)
打字/index.d.ts
{
"compilerOptions": {
"outDir": "./dist/",
"target": "es5",
"lib": ["esnext", "dom.iterable","dom", "scripthost", "es2015.symbol"],
"sourceMap": true,
"noImplicitAny": true,
"jsx": "react",
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"allowJs": true,
"module": "commonjs",
"isolatedModules": false,
"esModuleInterop": true
},
"include": …Run Code Online (Sandbox Code Playgroud) 出于好奇,我尝试了以下方法:
git checkout head
Run Code Online (Sandbox Code Playgroud)
我得到了这个:
$ git checkout head
Note: checking out 'head'.
You are in 'detached HEAD' state.
Me@MyPC /c/repo ((9da1bd7...))
$
Run Code Online (Sandbox Code Playgroud)
而
git checkout HEAD
Run Code Online (Sandbox Code Playgroud)
什么都不做(如预期的那样).那么前命令究竟在做什么呢?
更多信息:是的,我在Windows上.据我所知,它没有创建标签或分支:
Me@MyPC /c/repo ((9da1bd7...))
$ git log -n 1
commit 9da1bd740434923ae55ca1b50efb7c62eb6e0c35
Author: someone else
Date: Fri Dec 6 15:44:08 2013 +0100
Me@MyPC /c/repo ((9da1bd7...))
$ git tag -l
TestRelease
Me@MyPC /c/repo ((9da1bd7...))
$ git branch -l
* (detached from head)
master
Run Code Online (Sandbox Code Playgroud) 所以我有这些长整数,5488461193L 和 5545007984L,我需要能够将它们转换成这样的内存地址,0x143EE69B0。我知道它们是内存地址,因为它们最初是内存地址,但我只得到了它们的长版本。抱歉,如果有点难以理解。