当前位置: 首页 > wzjs >正文

建设一个网站需要什么设备北京seo平台

建设一个网站需要什么设备,北京seo平台,深圳龙岗建网站公司,网站是做响应式还是自适应的好一、自定义矩形 效果图 边框大小为:左2 上2 右5 下10 简单来说,就是定义两个矩形,一个在外边一个在内部; 再通过设置他们的边距,即可设置相应的边框宽度; 1.编码 新建空的qml文件 MyRectangle.qml im…

一、自定义矩形

效果图

边框大小为:左2 上2 右5 下10

简单来说,就是定义两个矩形,一个在外边一个在内部;

再通过设置他们的边距,即可设置相应的边框宽度;

1.编码

新建空的qml文件

MyRectangle.qml

import QtQuick 2.0Rectangle {id: borderRectproperty int innerTopMargin: 0        // 上边距property int innerBottomMargin: 0     // 下边距property int innerLeftMargin: 0       // 左边距property int innerRightMargin: 0      // 右边距property string innerColor: "white"   // 矩形颜色property string bodercolor: "black"   // 边框颜色width: 100height: 50color: innerColorRectangle {id: innerRectcolor: bodercoloranchors.fill: parent    // 填充满父类anchors.topMargin: innerTopMarginanchors.bottomMargin: innerBottomMarginanchors.leftMargin: innerLeftMarginanchors.rightMargin: innerRightMargin}
}

2.使用

// 自定义矩形                                                 
MyRectangle {                                               height: 100                                             width: 200                                              innerTopMargin: 2       // 顶部边框大小                       innerBottomMargin: 10   // 底部                           innerLeftMargin: 2      // 左边                           innerRightMargin: 5     // 右边                           bodercolor: "black"    // 边框颜色                         innerColor: "yellow"     // 矩形颜色                          // 居中                                                   anchors.verticalCenter: parent.verticalCenter           anchors.horizontalCenter: parent.horizontalCenter       //anchors.centerIn: parent                              
}                                                  

二、九宫格

可以使用矩形的相对位置,去设置一个九宫格出来;

即 以下这四个属性

anchors.top        anchors.left        anchors.right        anchors.bottom

源码如下:

import QtQuick 2.9
import QtQuick.Window 2.2import QtQuick.Controls 2.2Window {visible: truewidth: 640height: 480title: qsTr("Hello World")color: "white"MyRectangle {id: rect1x: 50y: 50height: 50width: 100innerTopMargin: 2       // 顶部边框大小innerBottomMargin: 10   // 底部innerLeftMargin: 2      // 左边innerRightMargin: 5     // 右边bodercolor: "black"    // 边框颜色innerColor: "yellow"     // 矩形颜色}MyRectangle {id: rect2y: rect1.ywidth: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.left: rect1.rightanchors.leftMargin: 5}MyRectangle {id: rect3y: rect1.ywidth: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.left: rect2.rightanchors.leftMargin: 5}MyRectangle {id: rect4x: rect1.xy: rect1.ywidth: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.top: rect1.bottomanchors.topMargin: 5}MyRectangle {id: rect5width: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.top: rect2.bottomanchors.left: rect4.rightanchors.leftMargin: 5anchors.topMargin: 5}MyRectangle {id: rect6width: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.top: rect3.bottomanchors.left: rect5.rightanchors.leftMargin: 5anchors.topMargin: 5}MyRectangle {id: rect7x: rect1.xy: rect1.ywidth: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.top: rect4.bottomanchors.topMargin: 5}MyRectangle {id: rect8width: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.top: rect5.bottomanchors.left: rect7.rightanchors.leftMargin: 5anchors.topMargin: 5}MyRectangle {id: rect9width: rect1.widthheight: rect1.heightinnerTopMargin: rect1.innerTopMargininnerBottomMargin: rect1.innerBottomMargininnerLeftMargin: rect1.innerLeftMargininnerRightMargin: rect1.innerRightMarginbodercolor: rect1.bodercolorinnerColor: rect1.innerColoranchors.top: rect6.bottomanchors.left: rect8.rightanchors.leftMargin: 5anchors.topMargin: 5}
}

http://www.dtcms.com/wzjs/465068.html

相关文章:

  • 苹果手机做网站服务器网络营销专业学什么
  • 擅自给公司做网站有什么责任seo 什么意思
  • 企业购 网站建设网站设计报价方案
  • 一流的上海网站建设企业获客方式
  • 广州营销型网站建设公司互联网推广平台有哪些公司
  • 网站怎么百度收录如何快速推广一个新产品
  • 我局在网站建设方面搜百度盘
  • 网站服务器有哪些网络促销方案
  • 江苏省职业建设注册管理中心网站网上培训
  • 企业营销网站建设公司站长之家最新域名查询
  • 网站建设培训哪家好网络广告策划案例
  • 网站用视频做背景百度应用市场app下载安装
  • 搭建自己的网站需要什么大专网络营销专业好不好
  • 网站开发目的与意义市场营销案例分析
  • 苏格网站建设怎样在百度上发布自己的文章
  • 网站目录访问沈阳网站制作公司
  • 游戏网站做代理怎样在百度上宣传自己的产品
  • unity 做网站百度seo通科
  • 做网站项目流程人工智能培训心得体会
  • WordPress高级投稿win7一键优化工具
  • 超市网站模板aso100官网
  • 评论回复网站怎么做的移动端排名优化软件
  • 跨境电商网站开发文档百度seo费用
  • 在域名上建设网站营销培训课程
  • 给自己做网站山东搜索引擎优化
  • 网站建设维保合同免费做网站网站的软件
  • 丹阳网站建设多少钱seo优化教程自学网
  • 网络服务提供者不履行法律行政法规规定的seo整站优化外包公司
  • 没有网站怎么做网络推广百度seo排名优化排行
  • 湖州网站建设公司哪家好福州seo扣费