- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 52字
- 2021-07-02 19:57:22
Window
Let's now add markup for the window that will be overlaid on our background panel. The window will have a width constraint and will be centered in the viewport.
index.html:
<p id="modal" v-bind:class="{ show : modalOpen }"> <p class="modal-content"> <img src="sample/header.jpg"/> </p> </p>
style.css:
.modal-content { height: 100%; max-width: 105vh; padding-top: 12vh; margin: 0 auto; position: relative; } .modal-content img { max-width: 100%; }
推薦閱讀
- C語言程序設(shè)計(jì)案例教程
- 零基礎(chǔ)學(xué)C++程序設(shè)計(jì)
- Docker技術(shù)入門與實(shí)戰(zhàn)(第3版)
- Mastering OpenCV Android Application Programming
- 深度學(xué)習(xí)經(jīng)典案例解析:基于MATLAB
- Visual FoxPro程序設(shè)計(jì)教程
- Spring Boot+Spring Cloud+Vue+Element項(xiàng)目實(shí)戰(zhàn):手把手教你開發(fā)權(quán)限管理系統(tǒng)
- Python數(shù)據(jù)分析(第2版)
- ArcGIS By Example
- INSTANT Sinatra Starter
- Microsoft Azure Storage Essentials
- Mastering React
- Hack與HHVM權(quán)威指南
- Design Patterns and Best Practices in Java
- 城市信息模型平臺(tái)頂層設(shè)計(jì)與實(shí)踐