亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

您的位置:首頁技術(shù)文章
文章詳情頁

css - 子元素跑到父元素外面

瀏覽:91日期:2023-06-23 14:04:59

問題描述

真的很奇怪 我也不知道什么鬼

css - 子元素跑到父元素外面

css - 子元素跑到父元素外面

css - 子元素跑到父元素外面

css - 子元素跑到父元素外面

mine.vue

<template><p> <p class='search'><input type='text' placeholder='搜索'> </p></p></template><style> .search{width: 100%;height: .5rem;background: #31C27C;clear: both; } .search input{width: calc(100% - .2rem);height: calc(100% - .2rem);border-radius: .05rem;background: #2CAF7A;border: none;margin: .1rem;padding: 0;color: #fff;text-align: center;color: aliceblue }</style>

topnav.vue

<template> <p class='topNav'><span><img src='http://www.aoyou183.cn/img/sort.svg'></span><ul> <li><router-link to='/mine'>我的</router-link></li> <li><router-link to='/musicPavilion'>音樂館</router-link></li></ul><span><img src='http://www.aoyou183.cn/img/music.svg'></span> </p></template><style> .topNav{width: 100%;height: .5rem;background: #31C27C;list-style: none;font-size: .18rem;font-weight: 600; } .topNav span{width: .6rem;height: .5rem;float: left;cursor: pointer; } .topNav span img{width: .3rem;height: .3rem;padding: .1rem .2rem; } .topNav ul{margin:0 calc(50% - 1.6rem);padding: 0;width:2rem;height: .5rem;float: left; } .topNav ul li{list-style: none;float: left;width: 50%;height: .5rem;text-align: center;line-height: .5rem; }</style>

index.html

<!DOCTYPE html><html><head> <meta charset='utf-8'> <title>qq</title> <meta name='viewport' content='width=device-width; initial-scale=1.0; maximum-scale=1; user-scalable=no;'></head><body> <p id='app1'><!--<p class='wrapper'>--><topnav></topnav><router-view></router-view><!-- <mine></mine>--><!--</p>--> </p> <script src='http://www.aoyou183.cn/wenda/app/index.js'></script> <script>(function (doc, win) { var docEl = doc.documentElement,resizeEvt = ’orientationchange’ in window ? ’orientationchange’ : ’resize’,recalc = function () { var clientWidth = docEl.clientWidth; if (!clientWidth) return; if (clientWidth >= 640) {docEl.style.fontSize = ’100px’; } else {docEl.style.fontSize = 100 * (clientWidth / 640) + ’px’; }}; if (!doc.addEventListener) return; win.addEventListener(resizeEvt, recalc, false); doc.addEventListener(’DOMContentLoaded’, recalc, false);})(document, window);//網(wǎng)易適配方案//(function () {// var scale = 1 / devicePixelRatio;// document.querySelector(’meta[name='viewport']’).setAttribute(’content’, ’initial-scale=’ + scale + ’, maximum-scale=’ + scale + ’, minimum-scale=’ + scale + ’, user-scalable=no’);// document.documentElement.style.fontSize = document.documentElement.clientWidth / 10 + ’px’;//})() //淘寶適配方案 </script></body></html>

index.js

import Vue from ’vue’import VueRouter from ’vue-router’import topNav from ’../components/topNav’import mine from ’../components/mine’Vue.use(VueRouter)const router = new VueRouter({ routes: [{ path: ’/mine’, component: mine} ]})export default router

app/index.js

import Vue from ’vue’import router from ’../router’import topnav from ’../components/topNav’require('../style/index.css')var app = new Vue({ el: '#app1', components: {topnav }, router})

問題解答

回答1:

輸入框加一個(gè)vertical-align:top試試

標(biāo)簽: CSS
相關(guān)文章:
主站蜘蛛池模板: 亚洲精品永久一区 | 欧美色欧美亚洲另类二区精品 | 黄色片亚洲 | 国产高清在线不卡 | 小视频在线免费观看 | 国产1024一区二区你懂的 | 99久久精品免费国产一区二区三区 | 国产精品成人免费观看 | 黄频在线免费观看 | 国产在线视频自拍 | 99久久精品免费观看国产 | 国产激情在线 | 成人国产精品一级毛片了 | 国产男同志gay毛片欧美 | 国产h视频 | 国产真实偷乱视频在线观看 | 成人国产激情福利久久精品 | 亚洲激情视频图片 | 国产三级在线观看视频不卡 | 亚洲精品国产第七页在线 | 亚洲精品一区二区三区第四页 | 免费一级a毛片免费观看欧美大片 | 国产九九免费视频网站 | 欧美成人午夜精品免费福利 | 香港aa三级久久三级不卡 | 久久ww精品w免费人成 | 伊人毛片| 国产三级三级三级三级 | 欧美激情视频一级视频一级毛片 | 农村黄a三级三级三级 | 亚洲欧美日韩中文在线制服 | 三级很黄很黄的视频 | 亚洲一区在线视频观看 | 91视频最新网站 | 日本xxxxx黄区免费看动漫 | 一级的黄色片 | 国产精选在线观看 | 久久精品国产精品亚洲精品 | 欧美一级毛片黄 | 久久婷婷综合五月一区二区 | 超级碰碰碰碰97久久久久 |