小编tak*_*ake的帖子

android 4.0.x上的font-face不起作用

我正在使用JQM构建移动应用程序,我需要使用font-face声明自己的字体.

我在我的index.html中包含了字体css文件fonts.css作为第一个加载的css文件,并声明font-faces如下:

@font-face {
    font-family:"MyFont";
    font-weight:normal;
    font-style:normal;
    src:url("fonts/MyFont.woff");
    src:url("fonts/MyFont.eot?") format("eot"),
        url("fonts/MyFont.woff") format("woff"),
        url("fonts/MyFont.ttf") format("truetype"),
        url("fonts/MyFont.svg#MyFont") format("svg");
}
Run Code Online (Sandbox Code Playgroud)

我的两个测试设备是Google Nexus 7安卓4.2.1Motorola Razr安卓4.0.4.

在谷歌Nexus上,它适用于移动Chrome和PhoneGap.但在摩托罗拉Razr上,它仅适用于移动Chrome.Android浏览器和Phonegap都没有使用MyFont.

是否有任何解决方法可以让我的Font在Android 4.0.x上运行?

css android font-face

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

jquery选择禁用选项

我有一个选项有一些选项:

 <select id="select">
   <option>1</option>
   <option disabled="true">2</option>
   <option>3</option>
 </select>
Run Code Online (Sandbox Code Playgroud)

我正在使用Chosen Plugin for jQuery,问题是从视图中删除了禁用的选项.但我需要将其显示为无法忽略的禁用元素.

有没有机会选择jquery插件?

- 该示例将转换为:

 <ul class="chzn-results">
   <li id="location_select_chzn_o_0" class="active-result result-selected">1</li>
   <li id="location_select_chzn_o_2" class="active-result">3</li>
</ul>
Run Code Online (Sandbox Code Playgroud)

所以secound元素不是不可见的,它根本就不存在.

jquery jquery-chosen

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

Dapper/SQL Server - get output from Stored Procedure containing Insert and Select statements

I just started learning Dapper in C# but I am having difficulty in executing stored procedures with two or more SQL Statements in one transaction.

How do you get the output parameter of a Stored Procedure that contains both Insert and Select statements in C# using Dapper?

Here is my stored procedure:

ALTER PROCEDURE [dbo].[AddToFileDetailsAndGetPrimaryKey] 

-- 1. declare input variables
@file_name NVARCHAR(100) = NULL,

-- 2. declare output variable
@file_details_pk UNIQUEIDENTIFIER OUTPUT

AS

-- 3. instantiate holder table
DECLARE @pk_holder …
Run Code Online (Sandbox Code Playgroud)

c# sql sql-server dapper

4
推荐指数
1
解决办法
7348
查看次数

使用c ++ boost库从图形中删除顶点及其所有邻居

我想从图G中删除与邻居的顶点w.

我的代码:

// remove all neighbours
MyGraph::adjacency_iterator n_iter, n_end;
for (tr1::tie(n_iter, n_end) = boost::adjacent_vertices (*w, G1); n_iter != n_end; ++n_iter)
{
    boost::remove_vertex(*n_iter, G1);
}

MyGraph::vertex_iterator vertex_iter, vertex_end;
Vertex vertex_w = G[*w];

// remove vertex himself
for (tr1::tie(vertex_iter, vertex_end) = boost::vertices(G1);vertex_iter != vertex_end; ++vertex_iter)
{
    Vertex vertex = G1[*vertex_iter];
    if (vertex.p_index == vertex_w.p_index)
    {
        boost::remove_vertex(*vertex_iter, G1);
        break;
    }
}
Run Code Online (Sandbox Code Playgroud)

我试图迭代相邻的顶点并删除它们.之后,我试图删除顶点w.

但是在启动程序时出现了一些异常和错误.

有人提示我从图表中移除所有邻居并使用Vertex w吗?

更新: 现在我明白为什么上面的代码不起作用(我使用VertexList = vecS).我现在尝试将"顶点"标记为"已删除",并希望删除所有边缘.

图形:

0     1
o-----o
|     |
|     |
o-----o
2     3
Run Code Online (Sandbox Code Playgroud)

码:

typedef boost::adjacency_list<boost::listS, …
Run Code Online (Sandbox Code Playgroud)

c++ boost graph boost-graph

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

标签 统计

android ×1

boost ×1

boost-graph ×1

c# ×1

c++ ×1

css ×1

dapper ×1

font-face ×1

graph ×1

jquery ×1

jquery-chosen ×1

sql ×1

sql-server ×1