Я просто хочу спросить о моем html-коде здесь, у меня есть небольшая проблема, когда дело доходит до калибровки моего div. когда я устанавливаю ширину div до 70px, содержимое все еще перетекает div, что я хочу, высота div автоматически настраивается, когда его содержимое превышает ширину div.Ширина моего div исправлена, пока содержимое все еще переполняется
любая помощь? heres мой код. спасибо заранее
<div class = "center"> the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the
lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps
over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown
fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the
quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy dog.the quick brown fox jumps over the lazy
dog.the quick brown fox jumps over the lazy dog. </div>
<style> .center{width:70px;} </style>
Сделайте пример кода на jsfiddle.net – SVS
Должен работать нормально. Вы пытались отключить/обновить кеш браузера? – speakr
http://jsfiddle.net/BQnae/ работает отлично здесь – treng