问题
I would like to have a <div>
centered in my page, with width = a % + b
pixels.
Does anyone know how to do it ?
回答1:
You can give its parent div
, align="center"
like:
<div align="center">
content
</div>
来源:https://stackoverflow.com/questions/13230107/css-centering-a-div-and-mixing-pixels-and-percents