quasar+vue实现responsive保持ratio宽高比率效果代码

代码语言:html

所属分类:其他

代码描述:quasar+vue实现responsive保持ratio宽高比率效果代码

代码标签: quasar vue responsive 保持 ratio 宽高 比率

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  
  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons'>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/quasar.prod.css">
  

</head>

<body>

<div id="q-app" style="min-height: 100vh;">
<div class="q-pa-md">
    <div class="row items-start q-gutter-md">
      <q-responsive :ratio="16/9" class="col">
        <q-card class="column">
          <q-img class="col" src="//repo.bfw.wiki/bfwrepo/image/627ef04e2d970.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_800,h_600,/quality,q_90" />

          <q-card-section>
            <div>Ratio 16:9</div>
          </q-card-section>
        </q-card>
      </q-responsive>

      <.........完整代码请登录后点击上方下载按钮下载查看

网友评论0