命令宽度:auto;对于响应式网站有时不起作用 [英] Command width: auto; for responsive web site sometimes don't work
本文介绍了命令宽度:auto;对于响应式网站有时不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
为响应式网站我在主页的css文件中写下文字线(文件site.css)
有时命令:
hello
for responsive web site i write bellow lines in a css file for masterpage (file site.css)
sometimes command:
width: auto;
工作可能但有时没有。为什么?
。页
{
/ * width:960px; * /
宽度:自动;
背景颜色:#fff;
保证金:20px auto 0px auto;
/ * border:1px solid#496077; * /
}
谢谢
我尝试过:
i don不知道要做什么。
help
work probably but sometimes no. why?
.page
{
/* width: 960px; */
width: auto;
background-color: #fff;
margin: 20px auto 0px auto;
/*border: 1px solid #496077;*/
}
thanks
What I have tried:
i don't know any things for do.
help
推荐答案
也许你应该尝试寻找一些实现响应式设计的选项。查看本文:响应式设计的常用方法 [ ^ ]
Perhaps you should try looking into some options for implementing a responsive design. Check this article out: Common Approaches to Responsive Design[^]
这篇关于命令宽度:auto;对于响应式网站有时不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文