我用这样的样式描绘,为什么container块的右边框会被挡住呢?请达人指教,感谢。
‘’‘html
May 12th, 2016 Thursday
12
oath
He swore an oath promising to uphold and protect the country's laws and constitution.
'''
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
下面有个滚动条嘛,你拉到右边去就看到啦。
你的宽度设置太大把整个页面都撑宽了。
给你的container加个
box-sizing:border-box;html每个标签都会有外边距和内边距的
你把p设置成100%而没有把边距消去掉的话
页面宽度 = 窗口宽度 + 2*margin值
显然会溢出窗口
样式里加下面代码