Jump to content
php.lv forumi

div vienā līnijā


Stopp

Recommended Posts

kādas karstas diskusijas pavērušās.

 

strādā gan tomēr tas background-color, bet tikai tad, ja div satur kādu simbolu, kaut arī esmu norādījis width un height. pat atstarpe neder. liekas dīvaini, bet nu labi.

Link to comment
Share on other sites

Tur nekā dīvaina nav, ka atstarpe neder. Tas ir ļoti normāli. Manuālīti vajag palasīties: http://www.w3.org/TR/html4/types.html#type-cdata

User agents may ignore leading and trailing white space in CDATA attribute values (e.g., " myval " may be interpreted as "myval").

Kā arī: http://www.w3.org/TR/html4/struct/text.html

In particular, user agents should collapse input white space sequences when producing output inter-word space
Link to comment
Share on other sites

×
×
  • Create New...