Html 如何在CSS中设置文本的正确位置?
我有以下css代码:Html 如何在CSS中设置文本的正确位置?,html,css,alignment,Html,Css,Alignment,我有以下css代码: #content{ position: fixed; bottom: 21px; text-align: right; } #content h1{ font-size: 1.5vw; text-align: right; } 和html: <html> <head> </head> <body> <div id="content"&
#content{
position: fixed;
bottom: 21px;
text-align: right;
}
#content h1{
font-size: 1.5vw;
text-align: right;
}
和html:
<html>
<head>
</head>
<body>
<div id="content">
<h1>content</h1>
</div>
</body>
</html>
给你。我无法使文本显示在右侧,它只显示在左侧。。。我怎样才能修好它?谢谢。将容器的内容宽度css属性设置为100%
将容器的内容宽度css属性设置为100%