• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Copy & paste of <h1>1</h1>\n<p>2</p> behaves differently to <h1>1</h1><p>2</p>

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
If you copy & paste from a HTML document with this sort of structure:
HTML:

کد:
<html><head></head>
<body>
<h1>1</h1>
<p>2</p>
</body></html>
It results in:
with newline گفت:
with newline said:

1​

2
Click to expand...
But if you copy & paste the following structure (no newline between <h1 & ><p> tags:
HTML:

کد:
<html><head></head>
<body>
<h1>header</h1><p>Lorem ipsum</p>
</body></html>
It results in:
with new line گفت:
with new line said:

1​


2
Click to expand...

The linebreaks typically show up when copying HTML from firefox, while chrome will strip newlines between tags.
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا