小编cos*_*van的帖子

如何阻止新行在HTML中的列表项之间添加空格

我有以下HTML;

li 
{
    list-style: none;
    border: solid 1px blue;
    display: inline;
    margin: 0px 0px 0px 0px;
}
...
<ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 2</li>
</ul>
Run Code Online (Sandbox Code Playgroud)

当我在他们自己的行上添加列表项时,它们之间会出现一个水平空格,但是当我这样做时;

<li>Item 1</li><li>Item 2</li><li>Item 2</li>
Run Code Online (Sandbox Code Playgroud)

他们不.

无论如何都要阻止新线显示为空白区域,还是需要使用负边距?

html

10
推荐指数
3
解决办法
1万
查看次数

使用类型时的Oracle CBO

我对Oracle 11g R2上的CBO有一个有趣的问题,我似乎无法解决.假设如下(注意这是为了简洁而减少DDL);

create or replace object o_primary_key ( id number(38,0) );
create or replace type t_primary_key table of o_primary_key;

create table customer (
  customer_id number(38, 0) primary key,
  parent_customer_id number(38, 0),
  ... additional columns ommitted ...
)

create table orders (
  order_id number(38, 0) not null primary key,
  customer_id number(38, 0) not null,
  date_applied date not null,
  deleted_on date null,
  amount number(18, 9) not null,
  ... additional columns ommitted ...
)

index idx_orders_1 on orders (customer_id, date_applied, deleted_on, order_id); …
Run Code Online (Sandbox Code Playgroud)

oracle oracle11g

5
推荐指数
0
解决办法
60
查看次数

我可以在工厂中创建隐式生命周期范围吗?

Autofac是否支持使用工厂的隐式生命周期范围?例如,我希望能够做到以下几点

public class Session : IDisposable
{
    public Session(A a, B b, C c)
    {
        ...
    }
} 

...

using (var session = _sessionFactory())
{
    ...
}
Run Code Online (Sandbox Code Playgroud)

然后在每次调用_sessionFactory时,Autofac会自动创建一个嵌套的生命周期范围吗?

autofac

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

标签 统计

autofac ×1

html ×1

oracle ×1

oracle11g ×1