- 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%; }
推薦閱讀
- Magento 2 Development Cookbook
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- Visual Basic程序設(shè)計(jì)習(xí)題解答與上機(jī)指導(dǎo)
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- Quarkus實(shí)踐指南:構(gòu)建新一代的Kubernetes原生Java微服務(wù)
- Mastering Predictive Analytics with Python
- Python算法指南:程序員經(jīng)典算法分析與實(shí)現(xiàn)
- Getting Started with React Native
- C# and .NET Core Test Driven Development
- OpenStack Networking Essentials
- HTML5+CSS3+jQuery Mobile APP與移動(dòng)網(wǎng)站設(shè)計(jì)從入門到精通
- Maker基地嘉年華:玩轉(zhuǎn)樂動(dòng)魔盒學(xué)Scratch
- 平面設(shè)計(jì)經(jīng)典案例教程:CorelDRAW X6
- Scala Functional Programming Patterns
- Python應(yīng)用與實(shí)戰(zhàn)