我遇到了IE7列表元素错误的问题.子弹(或数字)的子弹(或数字)显示在边缘之外.我如何解决这个问题?从我所看到的,当在IE7 li中指定高度/宽度时,这似乎是一个问题.图片可以在这里找到:
火狐:

IE7:

我有一个Meyer重置的样式表.
#create_request li {
display: list-item;
width: 313px;
height: 23px;
background-color: #E3E3E3;
list-style: decimal;
list-style-position: inside;
padding-left: 25px;
padding-top: 5px;
}
#create_request li.alternate {
background-color: white;
}
#create_left li:hover {
width: 356px;
background: url('/images/list_add.png') 100% 100% no-repeat;
background-color: #B0B0B0;
cursor: pointer;
}
Run Code Online (Sandbox Code Playgroud) 为布局更新提供的上下文
我的页面结构比较简单.该页面由两个div组成,两个div都是绝对定位的.一个在另一个中心.
<div id="protocol_index_body_wrapper">
<div id="protocol_index_body">
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
哪个有相应的CSS:
#protocol_index_body_wrapper {
background: url("/images/stripe.png") repeat scroll 0 0 transparent;
position: absolute;
top: 120px;
left: 0px;
right: 0px;
bottom: 10px;
}
#protocol_index_body {
width: 960px;
margin: 0 auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
Run Code Online (Sandbox Code Playgroud)
预期的行为见上图.IE8,Firefox和Chrome中存在此行为.但是,在IE7中,应该居中的div与左侧齐平.有任何想法吗?
有没有简单的方法来使用零填充来连接具有不等维度的矩阵?
short = [1 2 3]';
long = [4 5 6 7]';
desiredResult = horzcat(short, long);
Run Code Online (Sandbox Code Playgroud)
我想要像:
desiredResult =
1 4
2 5
3 6
0 7
Run Code Online (Sandbox Code Playgroud)