Jump to content

d.maria

Neophyte
  • Posts

    1
  • Joined

  • Last visited

Everything posted by d.maria

  1. Добрый день! Мой html создается програмно из файла Word (который по сути XML). Моя задача отобразить этот файл в html. поэтому текст разбивается на части, которые в свою очередь заключены в <bdi>. при этом мне нужно выставить свойство параграфа text-align:justify. при выставлении "в лоб" ничего не получается. точнее не получается, если текст двуязычный (а в этом случае еще и двунаправленный) вот html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> </head> <article> <section> <p style="direction:rtl; white-space:nowrap; text-align:justify;"> <span> <bdi style="direction:rtl; "> <span class="txt0">?? ???? ????? ?? ????</span> <span class="txt0"> </span> <span class="txt0">?</span> </bdi> <bdi style="direction:ltr; "> <span class="txt0">-</span> <span class="txt1">www.google.com</span> <span class="txt0">,</span> <span class="txt0"> </span> </bdi> <bdi style="direction:rtl; "> <span class="txt0">???? ??????</span> <span class="txt0"> </span> <span class="txt0">?</span> </bdi> <bdi style="direction:ltr; "> <span class="txt0">-DNS</span> <span class="txt0"> </span> </bdi> <bdi style="direction:rtl; "> <span class="txt0">????</span> </bdi> <bdi style="direction:ltr; "> <span class="txt0">.</span> <span class="txt0"> </span> <span class="txt0">DNS</span> </bdi> </span> <br /> <span> <bdi style="direction:rtl; "> <span class="txt0">??? ?????</span> <span class="txt0"> </span> <span class="txt0"> <u>???? ?????? ?? ?? ???? ?????? ????????</u> </span> <span class="txt0"> </span> <span class="txt0"> <u>???</u> </span> <span class="txt0">.</span> <span class="txt0"> </span> <span class="txt0">????? ?? ??????</span> </bdi> </span> <br /> <span> <bdi style="direction:rtl; "> <span class="txt0">???? ??? ????? ????? ???????? ?? ??? ?????</span> </bdi> <bdi style="direction:ltr; "> <span class="txt0"> </span> </bdi> <bdi style="direction:rtl; "> <span class="txt0"> </span> <span class="txt0">??? ?????.</span> </bdi> </span> <br /> </p> </section> </article> <style type="text/css">.txt0{font:12pt "Arial"; }.txt1{font:bold 12pt "Arial"; }</style> </html> Извиняюсь, что код очень длинный. как уже говорила, его строит программа, тут ничего не сократить что можете посоветовать?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy