Tôi đang cố gắng căn giữa một div, là ứng dụng Microsoft pubCenter AdControl cho Windows 8 trong HTML5/JavaScript.Dọc theo chiều ngang một DIV ở trang
<div id="myAd" style="; top: 0%; width: 292px; height: 60px; z-index: 1"
data-win-control="MicrosoftNSJS.Advertising.AdControl"
data-win-options="{applicationId: 'exampleAdId', adUnitId: 'exampleAdUnit'}">
</div>
Làm cách nào để đặt giữa một div theo chiều ngang sao cho luôn nằm giữa trang?
có thể muốn xem xét điều này [câu hỏi] (http://stackoverflow.com/questions/16670025/css-to-centralise-a-html5-div -at-the-bottom-of-the-screen/16674978 # 16674978) – Sushil