如何在CSS中设置边框中的背景颜色(How to set background color in border in CSS)
.click{ padding: 10px; border: 2px solid #e4910c; border-radius: 200px; transition: background-color 0.1s; } a:hover{ background-color: #e4910c; color: white; }
我试图在#e4910c的边界到处设置; 但文字有填充。 所以我只能将文本的背景颜色设置为#e4910c,而不是边框中的任何地方。 怎么做? 先谢谢你
.click{ padding: 10px; border: 2px solid #e4910c; border-radius: 200px; transition: background-color 0.1s; } a:hover{ background-color: #e4910c; color: white; }
I tried to set everywhere in border to #e4910c; But the text has padding. So I only can set text's background color to #e4910c, not everywhere in the border. How to do that? Thank you in advance
原文:https://stackoverflow.com/questions/35242074
更新时间:2022-11-22 18:11
最满意答案
在最后几个FluentNHibernate构建中,
ProxyFactoryFactory
方法被移出Database
直接从Configure
移出。 尝试这个:var nhConfig = Fluently.Configure() .ProxyFactoryFactory<ProxyFactoryFactory>() .Database(MsSqlConfiguration.MsSql2008.ConnectionString(c => c.FromConnectionStringWithKey("MyDatabase").AdoNetBatchSize(100)) .Mappings(mappings => mappings.FluentMappings.AddFromAssemblyOf<MyClass>()) .ExposeConfiguration(c => c.Properties.Add("current_session_context_class", "web")) .BuildConfiguration();
In the last couple of FluentNHibernate builds, the
ProxyFactoryFactory
method was moved out ofDatabase
to directly off ofConfigure
. Try this:var nhConfig = Fluently.Configure() .ProxyFactoryFactory<ProxyFactoryFactory>() .Database(MsSqlConfiguration.MsSql2008.ConnectionString(c => c.FromConnectionStringWithKey("MyDatabase").AdoNetBatchSize(100)) .Mappings(mappings => mappings.FluentMappings.AddFromAssemblyOf<MyClass>()) .ExposeConfiguration(c => c.Properties.Add("current_session_context_class", "web")) .BuildConfiguration();
相关问答
更多-
升级3.0后,为Castle Windsor配置NHibernate 3.3.1(Configure NHibernate 3.3.1 for Castle Windsor after 3.0 upgrade)[2023-04-27]
外部字节码提供程序不再需要。 NHibernate现在有一个内部的。 只要删除对它的引用即可。 External bytecode providers are no longer required. NHibernate now has an internal one. Just remove the references to it. -
你可以使用NuGet获得它。 You can get it using NuGet.
-
自Spring 3.0.3(及更高版本)默认AuthenticationManager以来, ProviderManager在验证尝试后清除凭据( SEC-1493 )。 你一定是旧版本(Spring Security 3.0.3之前版本)。 您的CustomAuthenticationProvider也存在缺陷,因为您应该在成功进行身份验证后将身份验证设置为true (否则扩展AbstractSecurityInterceptor拦截器将重新尝试身份验证。 链接 SEC-1493 ProviderMana ...
-
想通了: 使用它 mapping.Id(x => x.Id).Column("user_id"); Figured out: Use it as mapping.Id(x => x.Id).Column("user_id");
-
作为一个墓志铭,我最终做了两件事之一: 对于只有一个可能感兴趣的字段的表,我创建了一个键入表的ID的枚举,并使用自定义类型将它们映射为枚举。 对于可能有多个值的表,我创建并映射了一个域对象。 如上所述,如果不将子表作为对象引用,则可能无法使连接行为起作用。 As an epitaph, I ended up doing one of two things: For tables where there was only one field that could ever be of interest, I ...
-
重构友好(重命名不会破坏映射) 具有可配置约定的自动映射 在您的域的映射中智能感知 编译时间验证 Refactoring friendly (renames won't break mappings) Automappings with configurable conventions Intellisense in mappings for your domain Compile time validation
-
NHibernate Validator没有与Fluent NHibernate集成(NHibernate Validator not integrating with Fluent NHibernate)[2022-03-01]
我调试了这个,似乎当它验证我的实体时,它再次初始化我的验证器引擎。 我通过将上面的ConfigureNhibernateValidator(配置配置)方法更改为以下(此处的关键是设置SharedEngineProvider)来更正此问题: private static void ConfigureNhibernateValidator(Configuration config) { var provider = new NHibernateSharedEngineProvid ... -
测试Fluent NH映射(Testing a Fluent NH mapping)[2024-03-10]
在使用它之前,您需要从会话工厂实际获得一个新的NHibernate会话。 下面是一个更详细的例子: ISessionFactory sessionFactory = Fluently.Configure(normalConfig) .Mappings(m => m.FluentMappings .AddFromAssemblyOf()) .ProxyFactory ... -
德克,这是不可能的! 但是当你发表你的评论时,我试图删除对这个组合的依赖,并通过经典方法(NHibernate.Cdg.Configuration)配置NHibernate,并使用wcf工具简单配置regiser ISession:Component.For()。LifeStyle.PerWcfOperation()。UsingFactoryMethod (会话Factory.OpenSession)。 并且项目完美无缺。 谢谢老兄! :) Dirk, it is impossible! but when ...
-
在最后几个FluentNHibernate构建中, ProxyFactoryFactory方法被移出Database直接从Configure移出。 尝试这个: var nhConfig = Fluently.Configure() .ProxyFactoryFactory
() .Database(MsSqlConfiguration.MsSql2008.ConnectionString(c => c.FromConnectionStringWithKey("MyDa ...