小编jau*_*urt的帖子

使用ResourceLoader.GetString方法检索密钥中的点的资源

我正在使用ResourceLoader.GetString从我的.resw文件中获取字符串资源.我能够在密钥中没有点的情况下检索资源,但是带有点的资源会以空字符串的形式返回.例如:

var rl = new Windows.ApplicationModel.Resources.ResourceLoader();
rl.GetString("HelpText"); // gets the string "Help"
rl.GetString("Forget.Text"); // gets "", even though it's defined in resw file as "Forgotten"
Run Code Online (Sandbox Code Playgroud)

我尝试用其他各种字符替换点:

rl.GetString("Forget_Text");
rl.GetString("Forget:Text");
rl.GetString("Forget-Text");
Run Code Online (Sandbox Code Playgroud)

没运气.MSDN上的所有示例都巧妙地避免提及这个小问题,所以我有点难过.有人可以帮忙吗?

c# xaml windows-store-apps

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

IE11嵌入式字体无法正常工作 - 尝试了所有常用方法

我有一套在Firefox,Chrome,Safari中运行良好的嵌入式字体 - 但是,惊喜,惊喜,不是在IE中(v11,但在10中试过,但也没有用).

我可以在IE中加载一些,但不能加载其他的.css示例:

/* working */
@font-face {
    font-family: 'FoundersGroteskWeb-Semibold';
    src: url(./fonts/FoundersGroteskWeb-Semibold.eot);
    src: url(./fonts/FoundersGroteskWeb-Semibold.eot?#iefix) format('embedded-opentype'),
        url(./fonts/FoundersGroteskWeb-Semibold.woff) format('woff');
    font-style: normal;
    font-weight: normal;
            }

/* not working */    
@font-face {
    font-family: 'FoundersGroteskX-CondensedWeb-Bold';
    src: url(./fonts/FoundersGroteskX-CondensedWeb-Bold.eot);
    src: url(./fonts/FoundersGroteskX-CondensedWeb-Bold.eot?#iefix) format('embedded-opentype'),
        url(./fonts/FoundersGroteskX-CondensedWeb-Bold.woff) format('woff');
    font-style: normal;
    font-weight: normal;
}
Run Code Online (Sandbox Code Playgroud)

服务的字体,所有命名都正确,等等.我注意到的一个区别是所有其他浏览器都加载了woff文件,而IE正在使用(第一个,非#iefix)eot文件.所以我尝试删除对eot文件的所有引用,强制IE11使用woff.再次,它加载第一个罚款,但没有使用第二个(所有其他浏览器加载都没有问题).

当我在IE上检查网络选项卡时,我可以看到第一个字体的200响应,但第二个字体根本没有任何内容,看起来它可能在css的解析中窒息.但是,鉴于两个声明与字体名称相同,我不明白为什么会这样.

任何人都有任何想法,我还能尝试什么,因为我已经没有吸管了?

html css fonts internet-explorer

5
推荐指数
1
解决办法
1420
查看次数

Postgres WITH query and multiple subsequent statements

I need to delete from multiple tables, according to the contents of another table. To avoid having to re-declare a query in every statement, I'm using WITH:

WITH users_to_delete AS (
  SELECT id FROM auth.user WHERE email IN (
    'address@email.com',
    'address2@email.com'
  )
)

DELETE FROM schema1.table WHERE "userId" IN (SELECT id FROM users_to_delete);
DELETE FROM schema2.table WHERE "userId" IN (SELECT id FROM users_to_delete);
DELETE FROM schema3.table WHERE "userId" IN (SELECT id FROM users_to_delete);
Run Code Online (Sandbox Code Playgroud)

When trying to execute this, I get …

sql postgresql

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

标签 统计

c# ×1

css ×1

fonts ×1

html ×1

internet-explorer ×1

postgresql ×1

sql ×1

windows-store-apps ×1

xaml ×1