使用CSS对齐复选框和标签(Align checkbox and label using CSS)
WooCommerce输出这样的复选框......
<label class="checkbox "> <input class="input-checkbox " name="checkbox" id="checkbox" value="1" type="checkbox"> Tick This Box </label>
这会导致对齐问题...
我可以通过编辑复选框的方式来修复它们,但在我做之前,有没有更简单的方法来让CSS看起来像这样?
WooCommerce outputs its checkboxes like this...
<label class="checkbox "> <input class="input-checkbox " name="checkbox" id="checkbox" value="1" type="checkbox"> Tick This Box </label>
This results in alignment issues...
I can fix them by editing the way checkboxes are output but before I do, is there a simpler way with CSS to get them to look like this?
原文:https://stackoverflow.com/questions/40788268
最满意答案
你的问题与
Foo,
的@Transient
注释无关Foo,
而是与Foo
整体有关。 索引过程中的一些代码试图调用Session.lock(foo),
但在foo
仍然只是一个普通对象时,在使用Session.save
或Session.persist
分配给会话之前。 也许有助于将cascade=PERSIST
参数添加到父对象的foo
字段上的注释中,如此处所述。Your problem is not related to the
@Transient
annotation insideFoo,
but toFoo
as a whole. Some code inside the indexing procedure is trying to callSession.lock(foo),
but at a time whenfoo
is still just a plain object, before having been assigned to the session usingSession.save
orSession.persist
. Maybe it would help to add acascade=PERSIST
parameter to the annotation on thefoo
field in your parent object, as explained here.
相关问答
更多-
如何摆脱“org.hibernate.TransientObjectException”?(How to get rid of “org.hibernate.TransientObjectException”?)[2022-08-16]
你应该定义级联。 级联意味着如果对象'A'具有对象'B'(或那些对象的集合),那么引用的'B'对象按照级联定义所指示的那样被保存/更新。 You should define cascades. A cascade means that if object 'A' has an Object 'B' (or a collection of those) then the referenced 'B' objects are saved/updated as your cascade definition in ... -
问题在于b在另一个会话中被持久化,该会话被关闭并且查询在新会话中创建。 当会话关闭时,其持久性上下文中的所有对象都将分离 。 如果您想稍后在其他会话中重用它们,则需要先将它们重新附加到该会话中: session.update(b); 从Hibernate书中引用: Session上的update()操作将分离的对象重新连接到持久化上下文并调度SQL UDPATE 。 Hibernate必须假定客户端在分离时修改了对象。 (否则,如果你确定它没有被修改,那么lock()就足够了。)当对话中的第二个事务提交时 ...
-
Grails:org.hibernate.TransientObjectException(Grails: org.hibernate.TransientObjectException)[2022-06-20]
在你的集合映射中你必须指定cascade=CascadeType.ALL (我不知道它在groovy中究竟是多少)。 该异常意味着您有一个其元素未被持久化的集合。 只有在设置了上述选项后,Hibernate才会自动保留它们。 PS关于这个异常有数百个线程(在SO上也是如此),你可以搜索。 In your collection mapping you have to specify cascade=CascadeType.ALL (I don't know how exactly it will be in ... -
如何在R中使用cumprod()创建返回索引的初始值?(How to Set Initial Value For Creating An Index Of Returns With cumprod() in R?)[2022-04-14]
使第一个返回零: cumprod(1+c(0,rnorm(10)*.01)) 或者将所有元素除以第一个值: ZZ <- ZZ/ZZ[1,1] Make the first return zero: cumprod(1+c(0,rnorm(10)*.01)) Or divide all elements by the first value: ZZ <- ZZ/ZZ[1,1] -
你可以使用Cascade。 @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) CascadeType.ALL是持久性将传播所有EntityManager操作(PERSIST,REMOVE,REFRESH,MERGE,DETACH)到相关实体。 其他方式 public boolean updateState(State theState) { boolean success = false; try { ...
-
如何在使用river插件时创建初始Elasticsearch设置(How to create initial Elasticsearch settings when using the river plugin)[2022-05-06]
要解决这个问题: 创建新的Elasticsearch索引+映射等。 创建新的Elasticsearch河,其索引名称设置为在步骤1中创建的索引的名称。 我在这里找到了答案: http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/5ebf1556d139d5ac/f17e71e04cac5889?lnk=gst&q=couchDB+river+settings#f17e71e04cac5889 To solv ... -
创建初始索引时获取TransientObjectException(Getting a TransientObjectException when creating my initial index)[2022-04-02]
你的问题与Foo,的@Transient注释无关Foo,而是与Foo整体有关。 索引过程中的一些代码试图调用Session.lock(foo),但在foo仍然只是一个普通对象时,在使用Session.save或Session.persist分配给会话之前。 也许有助于将cascade=PERSIST参数添加到父对象的foo字段上的注释中,如此处所述。 Your problem is not related to the @Transient annotation inside Foo, but to Foo ... -
您可以更新到最新版本的AngularFire(此时为0.3),可从https://cdn.firebase.com/libs/angularfire/0.3.0/angularfire.js获取 - 在此版本中绑定到不存在的数据将只是工作,不需要第四个参数。 例如: var ref = new Firebase(URL); $scope.remote = {}; angularFire(ref, $scope, "remote"); 即使URL上没有数据也会有效。 You can update to th ...
-
我弄明白了。 希望它可以帮助别人。 仍然不知道为什么我得到它所做的错误,但我想出了连接,这使得查询正常工作 连接: Root
d = cq.from(Devices.class); Join join1 = d.join(Devices_.office); ListJoin join2 = join1.join(Offices_.siteCodes); 参数表达式和谓词: ParameterExpression< ... -
Tridion - 提交部署失败(TransientObjectException)(Tridion - Commiting Deployment Failed (TransientObjectException))[2021-06-20]
我遇到过类似的问题,发现它在Broker DB中出了问题,通常取消发布页面并重新发布它已经解决了这个问题。 我知道这不是一个很好的解决方案,但对我们有用 I have had similar issues, and found it to be something gone wrong in the Broker DB, generally un-publishing the page and re-publishing it has solved the issue. Not a great soluti ...