如何在CSS中width = 100% - 100px? [英] How can I do width = 100% - 100px in CSS?
本文介绍了如何在CSS中width = 100% - 100px?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在CSS中,我可以这样做:
In CSS, how can I do something like this:
width: 100% - 100px;
我想这是相当简单,但是有点难以找到示例。
I guess this is fairly simple but it is a bit hard to find examples showing that.
推荐答案
你可以嵌入一个div margin-left:50px;
width:100%; c> < div>
code>?
Could you nest a div with margin-left: 50px;
and margin-right: 50px;
inside a <div>
with width: 100%;
?
这篇关于如何在CSS中width = 100% - 100px?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文