如何删除 HTML 中段落内单词之间的空格



我用HTML写了一个段落,但在浏览器(移动视图(中,单词之间有额外的空格,这是在移动视图中输出的:- [这是示例][1]k.imgur.com/jfDLE.jpg

这是代码中的段落

<!Doctype html>
<html lang="en">
<head>
<title>para</title>
<head>
<body>
<p>Dr.Babasaheb Ambedkar being the inspiration,the MSWS works for the upliftment of deprived and depressed society educationally,morally and ethically to ignite theirs minds so an to lead a dignified life.
</p>
<body>
</html>

问题出在div 中的 CSS 文件中,带有类abt-mswsa-article1。只需取出里面的text-align即可。

.abt-mswsa-article1 {
border: 1px solid;
border-color: #035aa6;
background-color: #e4e4e4;
height: 200px;
margin: 30px auto 0;
width: 900px;
margin-left: 16.5%;
}

最新更新