0
- 이것을 IE6에서 구현할 수 있습니까?
- 가능하다면 어떻게됩니까?
: http://www.svendtofte.com/code/max_width_in_ie/
<style>
p {
border:1px solid red;
width:expression(
document.body.clientWidth > (500/12) *
parseInt(document.body.currentStyle.fontSize)?
"30em":
"auto");
}
</style>
CSS :
<!--[if IE 6]>
<style type="text/css">
img.img {
width:expression(document.body.clientWidth > 640 ? "640px": "auto")
}
</style>
<![endif]-->
내가 뷰포트를 제한하려고하지만 아니에요 img.img { 최대 폭 : 640; } – Newbie
? 그래서. 그런 다음 CSS 선택기를 변경하십시오. – jitter
CSS 표현식을 고려하기 전에 http://developer.yahoo.com/performance/rules.html#css_expressions를 살펴보십시오. – Chocula