Who can analyze why CSDN cannot wrap today? CSDN bug cannot wrap
This is the first line
This is the second line
This is the fourth line (the third line is empty)
This is the http://bbs.csdn.net/topics/390532303 of the link where I submitted the BUG
Why is this happening?
Reply to discussion (solution)
View the source code of the webpage. The body is
This is the first line, this is the second line, and this is the fourth line (the third line is empty). This is the link to the bug I submitted: http://bbs.csdn.net/topics/390532303. how can this happen?
Without the HTML line feed mark, the line feed will naturally not work.
This processing code is available for the post_body class.
$('.post .post_body blockquote').each(function(index, item) { var first_child = $(item).find(':first'); if($(item).contents().get(0) !== undefined && $(item).contents().get(0).nodeName.toLowerCase() === 'br' && first_child.prop('tagName').toLowerCase() === 'br') { first_child.remove(); } });
But obviously it cannot act on the body
What is wrong with the PHP output code?
Baidu does not seem to have written CSDN in PHP...
I feel like CSDN is good. The code has been used for many years. The UI is re-designed. the user experience is poor.
No matter what the language is, such problems will not occur for the sake of users.
No matter what the language is, such problems will not occur for the sake of users.
This sentence is brilliant.
It seems to be normal before. I don't know what code caused this problem...
It seems to be normal before. I don't know what code caused this problem...
Now.
We couldn't wrap the lines yesterday. we should have made some mistakes.
It seems to be normal before. I don't know what code caused this problem...
Also, it can only indicate that csdn testers are not powerful enough...
Now we can wrap the line. let's look at the source code.
This is the first line
This is the second line
This is the fourth line (the third line is empty)
This is the http://bbs.csdn.net/topics/390532303 of the link where I submitted the BUG <br/>
Why is this happening?
Why did you say it?
Now we can wrap the line. let's look at the source code.
This is the first line
This is the second line
This is the fourth line (the third line is empty)
This is the http://bbs.csdn.net/topics/390532303 of the link where I submitted the BUG <br/>
Why is this happening?
Why did you say it?
You are talking about the direct cause of the huge version... do we see these webpages not dynamically generated? I just want to see what statements lead to the generated html with or
Under what circumstances will this change be made? /...
Well, it's just my gossip.
If it is php, there is no issue with the nl2br function.
If this function is not available in other languages, you need to replace the code with handwritten characters.
It is estimated that he wants to reduce the burden on the server and put the replacement in the browser for execution. But the code is not written.
It's not just that you are idle. look for these bugs.
-I'm exhausted.
I feel like CSDN is good. The code has been used for many years. The UI is re-designed. the user experience is poor.
In fact, this interface is enough.