0
我可以選擇調整我的portlet大小。對於火狐它工作正常,但IE8它不工作。可調整大小的選項在IE 8中不起作用,但在Firefox中正常工作
CSS代碼:
.ui-resizable {
position: relative;
}
.ui-resizable-handle {
background: transparent url() no-repeat 50% 50%;
display: none;
font-size: 0.1px;
position: absolute;
}
.ui-resizable .ui-resizable-handle {
display: block;
}
.js .ui-resizable-disabled .ui-resizable-handle {
display: none;
}
.js .ui-resizable-autohide .ui-resizable-handle {
display: none;
}
.ui-resizable-n, .ui-resizable-s {
background-image: url(../images/application/handle_horizontal.png);
height: 14px;
left: 0;
right: 0;
}
.ui-resizable-n {
cursor: n-resize;
top: 0;
}
.ui-resizable-s {
bottom: 0;
cursor: s-resize;
}
.ui-resizable-e, .ui-resizable-w {
background-image: url(../images/application/handle_vertical.png);
background-position: center center;
bottom: 0;
top: 0;
width: 14px;
}
.ui-resizable-e {
cursor: e-resize;
right: 0;
}
.ui-resizable-w {
cursor: w-resize;
left: 0;
}
.ui-resizable-ne, .ui-resizable-nw {
height: 14px;
top: 0;
width: 14px;
}
.ui-resizable-ne {
background-image: url(../images/application/handle_ne.png);
cursor: ne-resize;
right: 0;
}
.ui-resizable-nw {
background-image: url(../images/application/handle_nw.png);
cursor: nw-resize;
left: 0;
}
.ui-resizable-se, .ui-resizable-sw {
bottom: 0;
height: 14px;
width: 14px;
}
.ui-resizable-se {
background-image: url(../images/application/handle_se.png);
cursor: se-resize;
right: 0;
}
.ui-resizable-sw {
background-image: url(../images/application/handle_sw.png);
cursor: sw-resize;
left: 0;
}
我的問題是,是否有任何基於CSS的解決方案,以激活IE可調整大小的選項?
您需要使用JavaScript。其IE版本爲 – alex
!你對它有什麼期望?對於一個完全跨瀏覽器的應用程序,你應該使用js,就像alex說的那樣。研究像jQurey這樣的庫,它們是跨瀏覽器的。 – crodjer